Force IE8 to compatability mode IE7

0

Posted on : 15-08-2009 | By : Stefan | In : CSS, HTML

If you found this post then Microsoft Internet Explorer 8 has probably broken your website. All that nice CSS work has been ruined.

A solution is to force IE8 to run in compatability mode of IE7.

<meta http-equiv=”X-UA-Compatible” content=”IE=7″ />

HTML Starter Template

4

Posted on : 20-09-2008 | By : Stefan | In : HTML

After becoming a freelance web designer I found that I was repeating tasks over and over. Here is the semantically correct, HTML Strict Valid template which I use each time I start web development on a new site. Feel free to use it as you wish…

Got comments on my structures, things to add or remove?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="Author" content="Freelance graphic design in Bracknell Berkshire UK - www.faithinme.com">

<link rel="stylesheet" type="text/css" media="screen" href="/css/screen.css">
<!--[if lt IE 7]>
<style type="text/css">@import url("/css/screen_ie.css");</style>
<style type="text/css">@import url("/css/screen_ieold.css");</style>
<![endif]-->
<!--[if gte IE 7]>
<style type="text/css">@import url("/css/screen_ie.css");</style>
<![endif]-->

<link rel="shortcut icon" href="/favicon.ico">

</head>
<body>

<ul class="access">
<li><a href="#nav">Skip to Navigation</a></li>
<li><a href="#content">Skip to Content</a></li>
</ul>

<div id="container">

<div id="header">
<h1><a href="/">Title</a></h1>
<span id="tagline">TagLine</span>
</div><!--// End Header -->

</div><!--// End Container -->
</body>
</html>