css - Problems creating html layout using float and margin-left -


i have following html code displays div elements on page.

<div style="float: left; width:182px; height:200px; border-style: solid; border-width:1px">left column</div>  <div style="margin-left: 200px; border-style:solid; border-width:1px">      <div style="float: left; border-style: solid;border-width:1px;">div1</div>    <div style="float: left; border-style: solid;border-width:1px;">div2</div>    <div style="clear:left; border-style: solid;border-width:1px;">div3</div>    <div style="float: left; border-style: solid;border-width:1px;">div4</div>  </div>

i div3 shown below div1 , div2, instead shown left column ends, there large space between div1/div2 , div3.

how can div3 shown below div1/div2? important div3 uses whole available width.

use may u

<div style="float: left; width:182px; height:200px; border-style: solid; border-width:1px">left column</div> <div style="margin-left: 200px; border-style:solid; border-width:1px">    <div style="float: left; border-style: solid;border-width:1px;">div1</div>   <div style="border-style: solid;border-width:1px;">div2</div>   <div style="border-style: solid;border-width:1px; display:block;">div3</div>   <div style="border-style: solid;border-width:1px; display:block">div4</div> </div> 

Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -