it seems that on Firefox and IE, even for standard compliance mode,
the following code will give different result:
<div style="border:1 px solid orange; width:300px"></div>
on IE 7, the div will have a height of "line-height", but on Firefox
2, the div will have zero height.
When the width:300px is removed, then it is zero height on both IE 7
and Firefox 2...
any method to make them consistent? Zero height is wanted when the
database returns empty string for within the div. Thanks very much!
the following code will give different result:
<div style="border:1 px solid orange; width:300px"></div>
on IE 7, the div will have a height of "line-height", but on Firefox
2, the div will have zero height.
When the width:300px is removed, then it is zero height on both IE 7
and Firefox 2...
any method to make them consistent? Zero height is wanted when the
database returns empty string for within the div. Thanks very much!
Comment