View Full Version : CSS vertical-align property
David
18th Jan 2008, 01:25 pm
I was having a few problems vertically aligning an image with a line of text. I thought I understood how vertical-align worked but I was only half-way there. This excellent article (http://www.ibloomstudios.com/articles/vertical-align_misuse/) explains exactly how it works. Good Stuff.
Jason_Michael
24th Nov 2008, 12:20 pm
David,
How do you verticaly align a div (like a wrapper). I want to centre the website which is smaller than the browser window. I can do it horizontally but not vertical. So if you have a huge screen the content comes up in the middle of the whole page not just the middle at the top.
I read some articles saying there wasnt a solution yet??
Jason
David
25th Nov 2008, 10:31 am
As far as I am aware, there is no definitive way to vertically align a wrapper div within a browser window. However, one work-around would be to use a margin-top with a percentage value.
Powered by vBulletin™ Version 4.0.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.