html - why are my divs not stacking correctly? -
i working on site , reason, divs acting strangely.
im not sure why happening.
html
<div class="row" id="information"> <div id="informationcontent" class="large-12 columns noslideshow"> <div id="pressreleasecenter"> <h2>press release</h2> <div class="pressimages"><a href="http://www.prweb.com/releases/2013/12/prweb11393087.htm"><img src="images/voip_vid_logo.png" height="200" width="200"></a></div> <div class="presstext" id="press1">december 04, 2013<br />voip innovations accepting requests new toll-free area code<br />due popular demand of toll-free numbers, fcc<br />will introduce 844 newest area code on saturday, december 7.<br />starting on saturday, december 7, have opportunity select 844 <a href="http://www.prweb.com/releases/2013/12/prweb11393087.htm"> more</a></div> <br /> <div class="hrbreak"></div> </div> </div> </div><!--end row--> css
/*float press release images*/ #pressreleasecenter{ width:960px; margin: 0 auto; /* background-color:green;*/ height:initial; } .pressimages{ /* background-color:yellow;*/ height:auto; width:30%; float:left; height:91px; } .presstext{ /* background-color:orange;*/ text-align:left; width:70%; float:left; height:91px; bottom:0; } .hrbreak{ width:100%; height:3px; background-color:white; position:relative; } #press1{ padding-top:10px; } also, there better way this? im considering using table. work in situation? want continue more information in same format.
don't use table layout. not done thing more. haven't specified how it's supposed looks need add clear: both; .hrbreak in order line sit below content imagine should doing.
Comments
Post a Comment