HTML 5 not working in IE 7
#1
Posted 22 March 2012 - 09:03 PM
i have just bought a one year membership to the Killersite university. I have downloaded the project file for the HTML5 CSS3 project and put the folder on my desktop. When i view the index page in Firefox, everything is fine, but in IE 7, everything is all over the place. I know that in the videos the teacher talks about the code "lt IE9". Normally it should work with any browser. Is it only because the root folder is on my desktop and not online that IE7 do not display the site correctly?
Regards.
#2
Posted 22 March 2012 - 09:48 PM
If You are just starting out I would suggest that you get familiar with html and css and then work on the conditional comments as you progress. This is just my personal opinion.
This post has been edited by grabenair: 22 March 2012 - 10:08 PM
My Portfolio site
#3
Posted 23 March 2012 - 01:39 AM
<!--[if lt ie 9]> your different styles here <![endif]-->
The above code should go in the head section AFTER the main stylesheet link or after the head section style tags so that it supersedes them. Styles written inline (inside html tags) will take priority over those in a conditional comment.
It should work from a local file or online.
Quote
The lt IE 9 conditional comment should work with all IE browsers less than IE 9 (assuming that your styles inside the conditional comment are appropriate and supported by the IE version).
This post has been edited by Wickham: 23 March 2012 - 02:44 AM
#4
Posted 23 March 2012 - 02:23 AM
#5
Posted 23 March 2012 - 10:06 AM
<!- -[if IE]>
<link rel=”stylesheet” type=”text/css” href=”whatever you named your style sheet”/>
<![endif]- ->
This post has been edited by grabenair: 23 March 2012 - 10:08 AM
My Portfolio site
#6
Posted 19 June 2012 - 08:36 AM
This post has been edited by brainusa: 10 September 2012 - 05:45 AM
#7
Posted 19 October 2012 - 02:03 AM
For some other cool features,like video in old IE, you need to use workarounds like Flash for video and Javascript libs for canvas.
#8
Posted 19 October 2012 - 06:22 AM
right at/near the top:
/*html5 display rule */
address, article, aside, canvas, content, details,
figcaption, figure, footer, header, hgroup, nav,
menu, section, summary {
display: block;
}
As mentioned in a previous post, Google html5 shiv (or shim)
and copy/paste the code in the head section.
The current (Oct. 2012) code is this:
<!--[if lt IE 9]>
<script src="dist/html5shiv.js"></script>
<![endif]-->
I learned the above from Ben Falk in a PHP class.

Help














