4
I made a website, but it gave error in IE9. The effect I made is only cool with display: initial;
(because it fits right in the letters).
The class code is as follows::
.box-slider h2 {
font-size: 23px;
background-color: #084867;
display: initial;
color: #fff;
padding: 5px 10px 2px;
line-height: 31px;
}
and is applied to a div
giving effect to a h2
, someone has some suggestion for this to work?
EDITED
follows the link http://jsfiddle.net/EQrLS/ ... I put 2 examples ... open the link on Chrome and IE9 and you will understand my doubt.
You could edit your question by adding a copy of the relevant code to the jsfiddle or some similar website?
– Rodrigo Deodoro
The
initial
then I wouldn’t be doing the sameblock
?– bfavaretto
Rodrigo Deodoro ... edited and put the link. bfavaretto, of course not friend rsrs.
– Ursones
Okay, Ursones, you’re right http://www.w3.org/TR/CSS2/visuren.html#propdef-display. My point was that some value like block, inline or inline-block would do, since initial is just one way to apply the initial value of the property as per the specification.
– bfavaretto