/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Position: fixed and IE6

Before I waste any more time with it, does anyone know off the top of their head whether or not IE6 supports position: fixed?

to post a comment

6 Comments(s)

Copy linkTweet thisAlerts:
@pcthugMar 05.2006 — No, just reverts to Absolute positioning.

Nevertheless M$ reassures us that we can expect to see full support for [I]position: fixed[/I] in future versions
Copy linkTweet thisAlerts:
@NogDogauthorMar 05.2006 — Thanks, I won't bang my head on that wall now. ?
Copy linkTweet thisAlerts:
@FangMar 05.2006 — Just for the record, IE7 will support [I]position:fixed[/I]
Copy linkTweet thisAlerts:
@UltimaterMar 06.2006 — Without getting into JavaScript, about the best you can serve up IE 6.0 is a page using frames. Otherwise I'd take the <!--[if IE lt 7]> ... <![endif]--> approach in combination with some JavaScript.

I'm not 100%, but I think if you have a frame taking up the whole screen and you have an absolutely positioned smaller frame stacked on top of it, that it would give the fixed effect.

Edit: The frame idea worked perfectly.
</i>&lt;iframe src="http://www.yahoo.com" width="100%" height="100%" style="border:0;"&gt;&lt;/iframe&gt;
&lt;div style="position:absolute; left:20px; top:70px;"&gt;&lt;iframe src="http://www.google.com" style="border:0;"&gt;&lt;/iframe&gt;&lt;/div&gt;
Copy linkTweet thisAlerts:
@bokehMar 06.2006 — If you want to do a [I]position:fixed;[/I] for everyone that uses a decent browser and still have it work in IE do something like the following:[code=html]#divName{
position: fixed;
width: 165px;

/* IE only */
* html #divName{
position: absolute;
There are other dodges that do result in real fixed positioning in IE but these seem to rely on Javascript.
Copy linkTweet thisAlerts:
@NogDogauthorMar 06.2006 — Thanks, all, bit it's not important enough that I'm going to mess things up with JavaScript or browser hacks. In this case, cleanliness of markup will outweigh cosmetics. (I know: I'll never make it as a graphic artist with an attitude like that. ? )


Help @NogDog spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 11.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ

legal: ({
terms: of use,
privacy: policy
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
recent_tips: (
tipper: @bahaedd,
tipped: article
amount: 1000 SATS,

tipper: @Balmasexy,
tipped: article
amount: 1000 SATS,

tipper: @mbsaad,
tipped: article
amount: 1000 SATS,