CSS inheriting div width -


i have following code:

<div class="parent">   <div class="foo"></div>   <div class="stuff"></div> </div> 

the div "foo" contains bunch of things fill giving width , force width on "parent" div. div "stuff" obtain same width "foo" forcing on "parent", can left-align things in "stuff" match "foo".

how done? if set width 100% on "stuff", it'll give width of whole viewport instead of parent has. ideas?


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -