Tuesday, October 4, 2011

CSS Div Vertical and Horizontal Aligning

This examples below shows you how to align divs vertically and horizontally with CSS classes. 

Vertical Div Alignment
 
Horizontal Div Alignment
First, we need a wrapper class to hold out divs in. Note the "html,body" needs to be instantiated for any div height=100% to work properly:

Blog Archive