You know how when you use frames, its possible to set it up so there is a horizontal frame across the top of the screen that is visible at all times? Well my question is how i can do this using css! It would be used to keep a menu visible at the top of the page at all times.
Yes, it's very possible; using position: fixed; which of course, IE does not recognize. So, to get around IE's stupidness we have to use a hack.
If you need other/more information, just google "IE positioning hack" or something like that.
Thousand different paths
So many sterile ends
I chose the Devil's path
Never shall the sun kiss my face
And caress me with it's burning light
For I dwell in the shadows
And sleep side by side with death
All right, I managed to get it working in both Firebird and IE. I have one question: Do you have PHP available to you? If you do, I can give this to you straight and it’ll work. If not, then you’ll have to put all the IE stuff in a separate stylesheet and use conditional statements so only IE will see those styles.
Thousand different paths
So many sterile ends
I chose the Devil's path
Never shall the sun kiss my face
And caress me with it's burning light
For I dwell in the shadows
And sleep side by side with death
yes i have php available to me, however, if you could post the code to do it serverside with php, but also post the code to using the ie conditional statement, that would be awesome. That way i can have both for future reference.
Originally posted by The Cheat yes i have php available to me, however, if you could post the code to do it serverside with php, but also post the code to using the ie conditional statement, that would be awesome. That way i can have both for future reference.
thanks
You’re going to have the styles in an external stylesheet, right?
You’re most very welcome.
This was also a learning experience for me, as I have never had the need for that hack, therefore I’ve never used it. But I did have a time getting it right, I could of sworn it was exactly as they had it, but apparently it wasn’t.
I should try a design like that sometime...
Anyhoo, good luck and many happy returns!
Thousand different paths
So many sterile ends
I chose the Devil's path
Never shall the sun kiss my face
And caress me with it's burning light
For I dwell in the shadows
And sleep side by side with death
yeah. its really unfortunate that ie doesn't support FIXED!!!! It ticks me off. I dont like using hacks for browsers that arent dead... In fact, i HATE hacks.
Originally posted by The Cheat yeah. its really unfortunate that ie doesn't support FIXED!!!! It ticks me off. I dont like using hacks for browsers that arent dead... In fact, i HATE hacks.
I know! I was thinking about this last night, really late (3 a.m.). I hate that IE doesn’t support the simplest things, like position: fixed;, and several CSS 2 selectors. Maybe I’ll just stop coding for IE... I just won’t check a thing in IE. I’ll just completely ignore it.
Thousand different paths
So many sterile ends
I chose the Devil's path
Never shall the sun kiss my face
And caress me with it's burning light
For I dwell in the shadows
And sleep side by side with death
Bookmarks