Click to See Complete Forum and Search --> : valign in CSS


Wildcat
09-07-2003, 09:40 PM
What's the CSS equivalent to valign? I want to position an image within a table.

PeOfEo
09-07-2003, 10:47 PM
style="position:relative;margin-top:50%;margin-bottom:50%;"
try that.

AdamGundry
09-08-2003, 12:41 PM
You could also use the vertical-align property: http://www.w3.org/TR/CSS2/visudet.html#propdef-vertical-align

Adam

PeOfEo
09-09-2003, 12:23 AM
Shows how long I have been using css lol :)

Wildcat
09-10-2003, 02:24 PM
Thanks! That's exactly what I was looking for . . . silly CSS books need to come out with a revised edition mentioning that.

PeOfEo
09-10-2003, 05:56 PM
well its in css2 not css, so they would put it in their css2 book. css2 is a different version of css so they would not reprint the book with just note you can use this and this they would redo it competly.