I have a H2 element with a span and some text:
<h2><span.../> Some text</h2>
The text is centered and I need to place the span on its left. I am using:
span {
margin-left: -60px;
}
Which is working for Firefox and Chrome, but does not work on Internet Explorer 9. How can I make it work on IE9 and IE8?
SPAN is an inline element. These cannot take horizontal margins or padding. You need to make the SPAN
display: inline-block.