Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Mar 2009
    Posts
    116
    Thanks
    29
    Thanked 1 Time in 1 Post

    Need a div to always fill the width.

    Hi every one.

    This pretty much shows what I need.



    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
    Last edited by hernantz; 02-22-2011 at 06:32 PM.

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    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?
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • Users who have thanked Excavator for this post:

    hernantz (02-22-2011)

  • #3
    Regular Coder
    Join Date
    Mar 2009
    Posts
    116
    Thanks
    29
    Thanked 1 Time in 1 Post
    Ok, yes it seems i have to add some width and edit it via js when adding the extra buttons.

    Thanks


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •