Is there a way to evenly space out a row of float:left divs that are a fixed width?
Here’s the HTML:
<div id="recent_content_content">
<div id="recent_tabcontent_1">
<div class="preview_item">
<div class="preview_item_img"><img src="images/preview_comingsoon.gif" class="centerimage" alt="" width="85" height="64" /></div>
<div class="preview_item_text">Subject! This is the way cool subject of the greates production ever! </div>
</div>
<div class="preview_item">
<div class="preview_item_img"><img src="images/preview_comingsoon.gif" class="centerimage" alt="" width="85" height="64" /></div>
<div class="preview_item_text">Subject! This is the way cool subject of the greates production ever! </div>
</div>
<div class="preview_item">
<div class="preview_item_img"><img src="images/preview_comingsoon.gif" class="centerimage" alt="" width="85" height="64" /></div>
<div class="preview_item_text">Subject! This is the way cool subject of the greates production ever! </div>
</div>
</div>
<div id="recent_tabcontent_2">Another area with other stuff</div>
</div>
Here’s my CSS file for setting defaults:
body, div, span, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, p, blockquote, table, th, td { margin: 0px; padding: 0px; }
body {
text-align: center;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 100.01%;
background-color: #161616;
color: white;
}
p { margin: .2em 0 .8em 0; }
ul, ol, li { margin: 0 0 0 1.4em; padding: 0px; }
ul, ol { margin-top: .2em; margin-bottom: .8em; }
a img { border: none; }
td img { display: block; }
table { width: 100%; }
.biggest { width: 100%; }
td.smallest, table.smallest { width: 0px; }
.left1 { text-align: left; margin: 0 auto; }
img.left1 { float: left; }
.right1 { text-align: right; margin: auto 0; }
img.right1 { float: right; }
.center1 { text-align: center; margin: 0 auto; }
.center1 table { margin-left: auto; margin-right: auto; }
img.centerimage { display: block; text-align: center; margin: 0 auto; }
.top1 { vertical-align: top; }
.bottom1 { vertical-align: bottom; }
And here’s the CSS code for the HTML code above:
#recent_tabcontent_1 {
text-align: justify;
}
.preview_item {
float:left;
width: 125px;
padding: 0px 0px 0px 0px;
}
.preview_item_img img {
width: 85px;
height: 64px;
text-align: center;
margin: 0 auto;
border-width: 1px 0px 0px 1px;
border-color: #5b5b5b;
border-style: solid;
}
.preview_item_text {
padding: 4px 0px 0px 0px;
text-align: center;
font-size: 70%;
}
The text-align: justify obviously doesn’t work, but if there’s similar code to do the similar thing to divs (rather than text), I’m assuming that’s where it’ll go.
Thanks