5 replies [Last post]
Stu
Stu's picture
Offline
Enthusiast
Bristol uk
Last seen: 19 years 10 weeks ago
Bristol uk
Joined: 2004-01-20
Posts: 282
Points: 0

I don't know if anyone else has found this, but it is possible to have 'position:fixed' in IE6 (well it works in the same way as position:fixed;)

I have a demo set up at ~

http://www.s7u.co.uk/layouts/fixed.html

This works in Mozilla, Opera AND IE6.

It's not what you do it's the way that you do it.
So do it with STYLE
http://www.s7u.co.uk

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 1 week 9 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5344
Points: 2965

position:fixed; for IE6

Hi Stu,
That's so simple and works really well.
Thanks for pointing it out.

Stu
Stu's picture
Offline
Enthusiast
Bristol uk
Last seen: 19 years 10 weeks ago
Bristol uk
Joined: 2004-01-20
Posts: 282
Points: 0

position:fixed; for IE6

I have been playing around with this a bit more and have a new demo at

http://www.penname.co.uk which takes it a step further.

It's not what you do it's the way that you do it.
So do it with STYLE
http://www.s7u.co.uk

Daybreak_0
Offline
Enthusiast
Sydney, Australia
Last seen: 19 years 19 weeks ago
Sydney, Australia
Timezone: GMT+10
Joined: 2003-11-15
Posts: 389
Points: 0

position:fixed; for IE6

The only way to learn is to do it yourself

Stu
Stu's picture
Offline
Enthusiast
Bristol uk
Last seen: 19 years 10 weeks ago
Bristol uk
Joined: 2004-01-20
Posts: 282
Points: 0

position:fixed; for IE6

I came across these after I had produced my own version, thanks.

However, for these to work it is necessary to trigger quirks mode, but for my version it can be acheived using standards compliant (xhtml1.1) mode.

Still looking into this further to see if anything else can be done using a resized <body> and fixed/absolute divs in the html page area. i'll let you know if I find anything worthwhile.

Edited:
As an example of what I mean
http://www.stunicholls.myby.co.uk/layouts/body.html

This works in IE6 and Firefox/Mozilla but is no good in NN7 or Opera.

No hacks or position:fixed used in this version, just a resized <body>

It's not what you do it's the way that you do it.
So do it with STYLE
http://www.s7u.co.uk

Johnworfin
Johnworfin's picture
Offline
Regular
Last seen: 18 years 19 weeks ago
Joined: 2004-11-18
Posts: 37
Points: 0

position:fixed; for IE6

Stu,

You have a solution that I have been seeking. However, I cannot get the same results with your trick.

I have already tried this method to the page and css in question to no avail. I have switched back the css and code so that I can move on to other things. I was wondering if you could take a look at it and tell me where the height and overflow option should go, or what in my code or css is making this fix not work?

the sidelinks div is what im trying to have fixed.

I appreciate any help yo could give me.
here's the link:

thx much!
JWhttp://www.meeks.com/Product_Showroom/Decking/Decking.html