Html5 New Elements (Header, Nav, Footer, ..) Not Working in Ie

html5 new elements (header, nav, footer, ..) not working in IE

You need to include the HTML5 shiv script in order to allow styling of HTML5 elements in older IE browsers: http://code.google.com/p/html5shiv/

To use, include the following script in your element above your CSS:

<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
<![endif]-->

HTML5 footer not working in IE

Wow. So I fixed it. Still not sure wtf was going on with IE but I ended up having to make a new stylesheet but after every new change I had to link it to another stylesheet name. Has anyone ever heard of IE acting like that??

Thanks for the users who posted comments! After a few hours of pulling my hair out I did what ever would work to get it working for IE and the most important thing is it paid off.

HTML5 tags in IE 8 & IE 7

IE7/8 do not support the new HTML5 tags like footer.

If you use them, you will get issues like this, and rendering glitches as a result.

There are work-arounds in the form of the html5shiv and Modernizr polyfill scripts. Use one of these libraries to add support for HTML5 tags to old IE versions.

If you're not prepared to use a Javascript library to fix IE's HTML5 support, the other option is to stop using these tags and switch back to using <div> tags for everything, with classes to identify them semantically.

How to use the HTML5 header tag into Internet Explorer 8?

AndreaNobili, Please add in your html file head :

<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js">
</script>
<![endif]-->

Now ie 8 browser support your all html5 elements.

Internet Explorer 8 won't modify HTML5 tags in print stylesheet

I suggest you try html5shiv. The main shiv does document.createElement() as you have but it's been optimized / minified like crazy. More importantly, it includes printshiv (IE Print Protector) which will let you style HTML5 elements for print.



Related Topics



Leave a reply



Submit