SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to create an addon product in MOSS 2007 which tries to position an html element in a fixed position inside SharePoint page using JS and CSS. I want to support IE 6+. What are the ways i can do it?

I've the following questions.

  1. It is mentioned that position:fixed works in IE7+. But it is not working unless i put a doctype for the html document (by default it runs in a quirk mode). But how can i add doctype to the document dynamically into the page? If i do so will it break any design? Can i have multiple doctypes in a same page?
  2. If i try to fix it using css expression (to position the element during scroll, for IE6) i learnt that IE8 has deprecated CSS expressions.

Its okay if i want to give up IE 6 support.

Any insights on this?

share|improve this question
up vote 1 down vote accepted

You can add a doctype by adding it in your page layout to the AdditionalPageHead contentplaceholder - the best way to test if it will break anything is by doing it unfortunately.

This site has a "hack" that seems to work in IE6.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.