Old 08-03-2004, 02:00   #1 (permalink)
LE F R E A K
____________
 
LE F R E A K's Avatar
 
Join Date: Oct 2003
Location: here.
Posts: 150
Fixed div

How do I make a div to stay fixed so it doesn't scroll with the rest of the page? Just like a fixed bground... Tried the position:fixed value inline, but it will place the div bottom right, and I want it where it is right now (the top left logo) -> http://monterosfg.eresmas.net Coding sucks, things should be made with our minds. 21st Century's full of shit for the time being... And where's my flying car?!
__________________
__________________
  Reply With Quote
Old 08-03-2004, 02:40   #2 (permalink)
Bill Posters
trouble free and loverlee
 
Join Date: Mar 2003
Location: YooKay
Posts: 2,968
Using position: fixed; top: Xpx; left: Xpx; is the correct method, but you'll need to read up on the workarounds for MSIE/Win's crappy support for position: fixed;

http://www.howtocreate.co.uk/fixedPosition.html
http://rooster.stanford.edu/~ben/not...ring/cssie.php

I'm not even sure if the workaround is a compromise or if it creates the full, desired effect as I've not had to look into it for any of my own jobs.
I just know that there is a workaround that 'helps'.


Also, place the logo div markup as the first element in your body.
Without proper support, MSIE/Win is simply rendering the element in a relative position according to its place in the markup.
Using the workaround should mean you can place it anywhere in the markup, but it's also genealy better to have logos close to the top of your body markup (along with proper alt attibutes + sundry accessibility doodads) as this means that the company name will appear at the top and help identify your page more clearly if/when css is not supported.


btw, that's one hateful design you're using there.
Are you affiliated with any opticians? You should be.
  Reply With Quote
Old 08-03-2004, 09:36   #3 (permalink)
tran-scribe
Registered User
 
tran-scribe's Avatar
 
Join Date: Feb 2004
Location: Manchester UK
Posts: 13
  Reply With Quote
Old 08-03-2004, 16:49   #4 (permalink)
LE F R E A K
____________
 
LE F R E A K's Avatar
 
Join Date: Oct 2003
Location: here.
Posts: 150
Quote:
Originally Posted by tran-scribe

Whoohoo!!!!!!!!!!!!!!!!!!!!! Yes Bill, I'm affiliated with some opticians Damn, fucking Explorer... Had to desist. Tried a cool script, but didn't work for me...
__________________
__________________
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8