|
Posted by mj.redfox.mj on 01/26/06 17:37
I have a table of width 100%, with one row and two columns.
The first column is a fixed 150 pixel width and contains text.
The second column has no width set, so that it just fills the rest of
the table width.
It contains a select box, which has a style attribute as follows:
style="width: 60%"
However, as it stands, this results in the second cell not displaying
at all, as (I'm assuming) the width of the select box is being treated
as 60% of 0, rather than 60% of the remainder of the table.
Interestingly, if I add a single character after the select box (i.e.
something with a finite width), the cell displays as expected.
Does anyone know if there's a better practice way around this, rather
than adding unneccessary characters every time I want to do this?
Thank you if you can help at all.
[Back to original message]
|