Custom design for <h3> tag… it work nicely on IE8, Firefox and Chrome.
But on IE7, the width (100%) is full which it shouldn’t happen. How to fix this?
Also the font size don’t appear to be the same as IE8, Firefox and Chrome
h3 {
background-color:white;
display:inline-block;
color:black;
padding-right:10px;
padding-left:5px;
padding-top:6px;
padding-bottom:6px;
margin-bottom:2px;
}
This is what you need:
*display: inlineuses a “safe CSS hack” to target only IE7.zoom: 1provides hasLayout for IE7 and lower, which is required to make this work.To fix the font size, specify an explicit
font-size. For examplefont-size: 24px.