html - How to clear float only in curent div? -



html - How to clear float only in curent div? -

i have followin g html:

<div class="wrapper"> <div class="left-block"> <p> text </p> </div> <div class="right-block"> <p> text </p> <div class="some-block">654</div> <div class="some-block">132</div> <div class="some-block">987</div> <div class="clear"></div> <div class="regular-block">10002</div> </div> </div>

blocks class left-block , some-block have property float:left looks http://jsfiddle.net/5k5v67jj/ block class clear has clear:left;

how can create block regular-block on screenshot:

you have contain float , clear in block formatting context. set such context, mutual practice utilize overflow:auto or overflow:hidden. you'd add together styling of div "right-block" class.

see http://jsfiddle.net/5k5v67jj/1/

html css

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -