CSS (stupid) Q?
- Started
- Last post
- 10 Responses
- nodh
How to vertically align some content (text, img) in the middle of a css div? (I don't want to use any table)
- nodh0
nice and easy, thank you honda!
- nodh0
... but it doesn't work :(
- honda0
nodh, you are trying to assign to a table cell correct?
TD
{
vertical-align: middle
}
- honda0
also:
.yourTextStyle
{
text-align: top/bottom/left/right
}
- pixelman0
I want to know that to.
It dosn't work here...
Help?
- nodh0
i'm trying to apply it to an image, so i use
img { vertical-align: middle }
and also there's a
.myDiv {
text-align: center
}
because i want my image to be centered in my div...
- honda0
found this too:
http://archivist.incutio.com/vie…hope some of this helps. =S
- honda0
One more:
http://milov.nl/forum/1/28
IF you on a mac, scroll to very bottom to see that guys technique for getting it to work on macs.