internet explorer - Why isn't my CSS working in IE 8 and IE 7? -
what in css doesn't work in ie8 & ie7?
nav { position: fixed; top:60px; left:30px; color:black; float:left; } nav div#button { width:205px; height:50px; text-align: center; padding-top: 5px; margin-bottom:10px; font-size: 23px; } nav { color: #000000; text-decoration: none; } nav div#button:active { width:250px; height:65px; } nav div#button.home { background-color: #79b22c; } nav div#button.links { background-color: #3b50cc; } nav div#button.aanbod { background-color: #ba3bcc; } nav div#button.forum { background-color: #1caeb2; } nav div#button.contact { background-color: #daa520; }
it works fine in ie9 & ie10. ie8 & ie7 displays no-styled text. have tested browserstack. can me please?
<nav>
, other html5 elements defined after ie 7 , ie 8 released, browsers aren't aware of how handle them.
they can, however, instructed handle them. and, html5shiv
can this:
include html5 shiv @ top of
<head>
in conditional comment after stylesheets.<!--[if lt ie 9]> <script src="html5shiv.js"></script> <![endif]-->
Comments
Post a Comment