2 Votes Vote

Left-floated, But Container Centered On Page?

Posted by topdog 928 days ago Questions| div finish auto All
I have a main div (.finish) inside a 900px container which containers left-floated div. The relevant css is:
CODE
{width:auto; height:auto; margin:0 auto;}
.finish div {float:left;text-align:center;padding:10px; margin:15px; }
.finish img {border:#625a29 1px solid; padding:1px;}
.finish h3 { font-size:90%;margin:0 0 10px 0;}


My problem is that I want to have all content center-aligned. The left-floating aligns all to the left (inside the div text and image is also aligned to center), but I need it to have several divs next to each other.

Is there anyother way to display the content?

Son
Discuss Bury


Who Voted for this Question