Robert Granlund
asked on
CSS Center align Divs
I have a section of a page that can have up to five boxes across that contain dynamic content. Right now I have the bo class floating left. However, if I have 1, 2 or 3 boxes I want them to center on the page, not float. How do I do that?
.related-product-box {
padding:1%;
width:23%;
text-align:center;
float:left;
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window