Results 1 to 4 of 4
Feb 8, 2008, 04:05 #1
- Join Date
- Aug 2007
- 44 Post(s)
- 1 Thread(s)
Question about IE6, negative margins, and position:fixed
Hallo monks. This should be an easy question but the answers I've found on Teh Googlies doesn't match what I've been reading.
In The Zen of CSS Design, Bonsai Sky (www.csszengarden.com/069) uses the idea that IE6 doesn't understand negative margins, nor position:fixed (as far as I know, it does work on the body, yes? Just nowhere else?), so the designer could hide two things at the same time from IE6 by simply mentioning position:fixed on something and then setting a normal position (left: 100%) which IE6 sees, moving the thing all the way off-screen to the right, and then dragging it back with margin-left: -100% for all the other browsers which IE6 does not see.
Now on Teh Internets I've found people using negative margins with IE6 with glee (and I've used it myself for the nagative-margin-float-wrap-trick) I guess so long as you have triggered Haslayout, which most people do with position: relative (mine apparently do it because I'm floating something).
So, which is it? Does position: fixed not trigger Haslayout because IE6 doesn't understand it at all?? It seems to go along happily with the left: 100% which I thought only works if you set some position declaration other than static... but if IE6 doesn't understand "fixed" then how does that count? It will scroll the thing in question.
When can I safely assume IE6 will NOT see something's negative margin? I've been using them all along and never ran across this until the book (and I'd read it a few months earlier but missed that part... now that I'm studying IE6-design vs. everyone-else, it popped out at me).