View Full Version : Resolved Need a div to always fill the width.

02-22-2011, 05:29 PM
Hi every one.

This pretty much shows what I need.

http://i.min.us/jjuFFg.png (http://min.us/mveMjGu)

inner-container-left must always fill the Container width.

the inner-container-right width will change when I add buttons through javascript.

This is the test page: http://jsbin.com/urijo3/edit

Thanks in advance

02-22-2011, 06:10 PM
Hello hernantz,
That is too many unknowns. At some point you need to give a width so the float can know what it's next to.
If you start out with a layout that works, can your .js supply .inner-content-right a new width when it puts another .button in?

02-22-2011, 06:31 PM
Ok, yes it seems i have to add some width and edit it via js when adding the extra buttons.