CSS hack: Difference between revisions

Content deleted Content added
m Conditional Comments: "then" --> "than"
Line 29:
</pre>
 
This tag will let IE 7 read the specified CSS file while IE 6 or less will ignore it. Browsers other thenthan IE will also ignore it because it looks like a standard HTML comment. With different uses of this tag you can also single out IE 6, IE 5, or versions of IE that are greater or lesser thenthan a specified version.
 
 
Below is an example of a "downlevel revealed" conditional comment:
Line 38 ⟶ 37:
<![endif]>
</pre>
This is recommended by microsoftMicrosoft for when the content should be exposed to non-IE browsers.
 
Microsoft acknowledges this method is not standardized markup for comments[http://msdn.microsoft.com/workshop/author/dhtml/overview/ccomment_ovw.asp], intending these tags to be overlooked by other browsers and expose the content in the middle. Some web developers use an alternative technique[http://www.456bereastreet.com/archive/200511/valid_downlevelrevealed_conditional_comments/] for downlevel-revealed conditional comments in order to only use standardize markup.