| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
i do lines
Join Date: Mar 2003
Location: Poland/Denmark
Posts: 3,232
|
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? ...
|
|
|
|
|
|
#2 (permalink) |
|
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.
|
|
|
|
#4 (permalink) |
|
i do lines
Join Date: Mar 2003
Location: Poland/Denmark
Posts: 3,232
|
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... ...
|
|
|
|
#5 (permalink) | |
|
Anarchist by Accident...
Join Date: Feb 2003
Location: Oxfordshire UK
Posts: 137
|
Quote:
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? |
|
|
![]() |