Image centering with CSS?
December 8, 2004 10:24 AM
Subscribe
Following some googling, I've found a few sites that claim you can't use CSS to centre an image vertically within a div. Does this mean that I can't get the images on
this page to float in the centre of their respective grey box? At the moment, they only seem to be postioned in the middle at the top of the box and even the middle bit is only because there is a text-align:center in there. (I don't mind If I have to lose the title of the image to get this to work)
posted by ralawrence to technology (13 comments total)
div.image img {
vertical-align:middle;
}
posted by Asparagirl at 10:45 AM on December 8, 2004