Vertical Centering with CSS
Published by Sean October 30th, 2006 in Computers, Design.I finally found a good reference for centering items on a page vertically using CSS.
I was trying to figure out how to do it for the update of Melissa’s Charmed Design site. The splash page now should look right at any resolution from 800 by 600 on up.
The main idea is to give the object negative margins that are half of the width, for the left margin, and height, for the top margin, to put the picture or text it in the middle of the browser window. View the source of the splash page or the aforementioned reference to see in more detail.
0 Responses to “Vertical Centering with CSS”
Please Wait
Leave a Reply