The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Div Width Problem! Please Help!
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
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:
We can only dream
Perhaps this will help:
http://stackoverflow.com/questions/1146675/how-to-make-2nd-element-get-rest-of-the-horizontal-space