Rules are good.
First, read this Topic: http://www.killersites.com/forums/topic
0-july-06/ about html versus xhtml, then pick a Doctype from the list found here. The Html 4 strict is the suggested one.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
IE conditionals are described best at the Micro$haft site. Link, but here are some examples to play with.
Put them into a new page and then look at the page using an IE Browser. Then use Opera or Firefox to see the same page.
<div>
<h3>IE Conditional Comments</h3>
<![if !IE]><p>You are not using Internet Explorer.</p><![endif]>
<!--[if IE]>
<p> According to the conditional comment this is Internet Explorer</p>
<![endif]-->
<!--[if IE 6]>
<p> According to the conditional comment this is Internet Explorer 6</p>
<![endif]-->
<!--[if IE 7]>
<p>According to the conditional comment this is Internet Explorer 7</p>
<![endif]-->
<!--[if gte IE 5]>
<p>According to the conditional comment this is Internet Explorer 5 and up</p>
<![endif]-->
<!--[if lt IE 6]>
<p>According to the conditional comment this is Internet Explorer lower than 6</p>
<![endif]-->
<!--[if lte IE 5.5]>
<p>According to the conditional comment this is Internet Explorer lower or equal to 5.5</p>
<![endif]-->
<!--[if lte IE 6]>
<p>According to the conditional comment this is Internet Explorer lower or equal to 6</p>
<![endif]-->
<!--[if gt IE 6]>
<p>According to the conditional comment this is Internet Explorer greater than 6</p>
<![endif]-->
</p>
</div>
Add the styles for IE to the head section of your page inside a set of the above Conditional Comments
Hope this helps.
Last edited by jlhaslip (May 8, 2009 8:27 pm)
My signature goes here --> X