Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Div Width Problem! Please Help!

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #29771
    mkannanmca86
    Member

    Hi friends,

    I have a div1 { float: left; width:200px; }. now i am going to add another div2 next to div1, where style will be { float : left; width : ??? }

    Pbm:
    What can i give instead of "???" where the condition is div2 have to occupy the remaining width of the browser. Please help!

    I am strucking up for 4hrs.

    Thanks in advance!
    Kannan.M

    #80534
    GreatPotato
    Member

    I might be wrong but I think you’re going to need some JavaScript to calculate the value and turn it into pixels…

    It’s a shame you can’t do:

    Code:
    width: 100% – 200px;

    We can only dream :roll:

    #80540
    Jerm993
    Member
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.