ed987
asked on
span width:100% in Firefox ?
following works as expected in IE (colors full line), but only colors those dots in Firefox:
<span style="background-color:#e aeaff;widt h:100%;">. ....</span >
how can i fix it for Firefox ?
( it does work if i use div, but i don't like that it breaks line, but if i use display:inline i get same problem as above )
<span style="background-color:#e
how can i fix it for Firefox ?
( it does work if i use div, but i don't like that it breaks line, but if i use display:inline i get same problem as above )
ASKER
no, that would break line, which i really don't wan't
What do you mean with break line? How would a 100% wide element not be on a single line?
-r-
-r-
This should do the trick:
<span style="background: #ccc; width: 100%; display: block; float: left;">................ </span>
Actually that is exactly what Roonaan said...have you tried this yet?
<span style="background: #ccc; width: 100%; display: block; float: left;">................ </span>
Actually that is exactly what Roonaan said...have you tried this yet?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
display:inline elements cannot have a width.
-r-