Old 24-06-2003, 19:53   #1 (permalink)
dorian
i do lines
 
dorian's Avatar
 
Join Date: Mar 2003
Location: Poland/Denmark
Posts: 3,233
bottom alligning layer

Having some trouble bottom alligning a (html) layer! x-amount of px bottom.
Tried dw extensions & stuff but they all seem quirky.
it's got to be possible... I'm not asking for too much this time, am I?
__________________
...
  Reply With Quote
Old 24-06-2003, 20:01   #2 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,236
It's a bit of a mine field I think as different browsers interupt it differently as to whether you're talking about the bottom of the window or the document.

Try this in your CSS though...

html, body { height: 100% }
div#bottom { position: absolute; bottom: 0; }

Obviously change bottom:0 to however you want it.
__________________
That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
  Reply With Quote
Old 24-06-2003, 20:10   #3 (permalink)
dorian
i do lines
 
dorian's Avatar
 
Join Date: Mar 2003
Location: Poland/Denmark
Posts: 3,233
thanks
will try it tomorrow... too knackered now.
__________________
...
  Reply With Quote
Old 27-06-2003, 06:20   #4 (permalink)
dorian
i do lines
 
dorian's Avatar
 
Join Date: Mar 2003
Location: Poland/Denmark
Posts: 3,233
another basic question here -
i got the layer to behave the way i want it but need to set the 'event' right:
i need it to be onLoad but it's not on the list - and it doesn't work if i just change it in the code
what is the right 'on_'?

Smallbeer: your tip didn't work for me. i'm too thick...
__________________
...
  Reply With Quote
Old 27-06-2003, 06:39   #5 (permalink)
Brooklyn
Anarchist by Accident...
 
Brooklyn's Avatar
 
Join Date: Feb 2003
Location: Oxfordshire UK
Posts: 137
Quote:
Originally posted by dorian
another basic question here -
i got the layer to behave the way i want it but need to set the 'event' right:
i need it to be onLoad but it's not on the list - and it doesn't work if i just change it in the code
what is the right 'on_'?

Smallbeer: your tip didn't work for me. i'm too thick...


Firstly:

html, body { height: 100% }
div#bottom { position: absolute; bottom: 0; }

should be:
/*in the CSS*/
html, body { height: 100% }
#bottom { position: absolute; bottom: 0; }

/*in the HTML*/
<div id="bottom">ddddddddddd</div>

For onload (has top be all in lowercase for xHTML) try onfocus instead?
  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