Is there a way to apply a background color to a forced inline element? I am having issues with displaying the background color in Firefox4, while it works fine in IE7. Can someone help me understand why this is happening and how to fix it?
You can view the JSFiddle example here
<ul id="in">
<li><h1>sfffffh</h1></li>
<li><h1>QssssfffffhQ</h1></li>
<li><h1>ZssssssZ</h1></li>
</ul>
CSS #in li{background:#0CF;display:inline;} #in{float:right;}