Note that there are some explanatory texts on larger screens.

plurals
  1. POIE9 css issue, forced to use float:left / float:right
    text
    copied!<p>I'm having a bit of an issue with IE9 and just can't figure it out, I'm creating a button in CSS with a linear gradient, it displays perfectly in Chorme, Firefox and Safari but just not in IE9</p> <p><a href="http://ubizzo.co.uk/img/ie9.png" rel="nofollow">http://ubizzo.co.uk/img/ie9.png</a></p> <p><a href="http://ubizzo.co.uk/img/ch-fi-sa.png" rel="nofollow">http://ubizzo.co.uk/img/ch-fi-sa.png</a></p> <p>First image link is IE9, second image link is every other browser, the only way I can get it work is if I add float:left or float:right in the css as below but then that obviously screws up the layout, I've tried to use float:none but that doesn't work either, I've tried this in a blank html file just to rule out any conflicting css but still doesn't work :-s</p> <pre><code>.purchase { margin-top: 5px; display: block; width: auto; } .purchase a { margin-top: 10px; margin-bottom: 10px; padding: 5px 10px; cursor: pointer; border: none; color: #fff; line-height: 1em; width: auto; **float: left;** border-image: initial; text-align: center; border: solid 1px #189199; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; background: -moz-linear-gradient(top, #19d7e3, #12A4B3); background: -webkit-gradient(linear, left top, left bottom, from(#19d7e3), to(#12A4B3)); background: -moz-linear-gradient(top, #19d7e3, #12A4B3); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#19d7e3', endColorstr='#12A4B3'); } .purchase a:hover { background: -moz-linear-gradient(top, #12A4B3, #19d7e3); background: -webkit-gradient(linear, left top, left bottom, from(#12A4B3), to(#19d7e3)); background: -moz-linear-gradient(top, #12A4B3, #19d7e3); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#12A4B3', endColorstr='#19d7e3'); color: #ffffff; } </code></pre> <p>Thanks for any help, Adam.</p> <p><a href="http://jsfiddle.net/gdmP8/" rel="nofollow">http://jsfiddle.net/gdmP8/</a> - notice that the button only displays once you've addded float:left/right</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload