I want to apply a background color to a forced inline element..It displays the background color in Ie7 however in firefox4, the color is not displayed..Why is that and how do I sort this out?
the Jsfiddle http://jsfiddle.net/ybYxq/
<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;}
vimal try this.
remove the h1 tag from the li and add font styling to li.
the CSS should be.
the html should be
this will work… try any problem just comment me. have a nice day…