Hi Guys,
So I’ve been reading a tutorial on fluid grids A List Apart: Articles: Fluid Grids and I get 99% of what’s been said…but one thing is bugging me a little because I can’t figure the reason behind it. So the layout in question is http://www.alistapart.com/d/fluidgrids/img/comp-full.gif constructed from the following html markup;
<div id="page">
<h1>The Ratio Revolution Will Not Be Televised</h1>
<div class="entry">
<h2>Anyone else tired of Helvetica?</h2>
<h3 class="info">A <a href="#">Blog</a> Entry:</h3>
<div class="content">
<div class="main">
<p>Main content goes here. Lorem ipsum etc., etc.</p>
</div><!-- /end .content -->
<div class="meta">
<p>Posted on etc., etc.</p>
</div><!-- /end .meta -->
</div><!-- /end .main -->
</div><!-- /end .entry -->
</div><!-- /end #page -->
My question is in relation to part of the styling…more specifically
.entry h2,
.entry .content {
float: right;
width: 85.425%; /* 844px / 988px = 0.85425 */
}
.entry .info {
float: left;
width: 12.551%; /* 124px / 988px = 0.12551 */
}
I don’t get why class “entry” is floated right and then left rather than simply floated left from the start. See I get that <h2>Anyone else tired of Helvetica?</h2> shares a div with <h3 class=“info”>A <a href=“#”>Blog</a> Entry:</h3> but is it not possible to just float the class .info left rather than floating its parent .entry both right and left?
Thanks,
M.