Forum Moderators: open

Message Too Old, No Replies

Centring content height wise

please help

         

domoftheuk

12:20 am on Jan 25, 2004 (gmt 0)

10+ Year Member



Centring content height wise

DrDoc

12:53 am on Jan 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Do you have a table or CSS based layout?
In CSS you can do stuff like:

#foobar {
background: red;
height: 300px;
width: 500px;
position: absolute;
top: 50%;
left: 50%;
margin-top: -150px;
margin-left: -250px;
}

You can also do something like:

#barbaz {
height: 300px;
width: 500px;
margin: auto;
}

ram_mac

1:37 am on Jan 29, 2004 (gmt 0)

10+ Year Member



There's also an interesting demo on doing this in CSS at:

[wpdfd.com...]