Page is a not externally linkable
- Code, Content, and Presentation
-- CSS
---- Put two DIVs side by side while keeping the image vertically centered


Rain_Lover - 7:55 pm on Jul 15, 2012 (gmt 0)


I'm really happy you finally showed up! Hope you had a great holiday! :)

If you remember we already discussed a similar image gallery where the large image appeared in the background. I had no problem centering the background image. But in this new gallery, the large image is a real HTML element as I want to put a caption under each large image and I couldn't do it with a background image.
Your solution has a little problem: the image isn't completely vertically centered. If you pay attention, it's closer to the bottom and further than the top of the container.


Thread source:: http://www.webmasterworld.com/css/4475632.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com