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.
- 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?
- 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?