Using conditional comments for Internet Explorer


show more Using conditional comments for Internet Explorer provides you with in-depth training on Web. Taught by James Williamson as part of the Managing CSS in Dreamweaver show less
please wait ...

Using conditional comments for Internet Explorer

One of the most annoying aspects of running CSS is the annoyance of having to deal with browser incompatibility in writing hacks or alternate styles for various browsers. Although all browsers have their individual quirks, by far the worst offender is Internet Explorer. Entire Web sites are dedicated to dealing with errors in that particular browser. Now one way to deal with IE Errors are to place hacks and browser workarounds directly within your CSS. This creates messy code, makes your IE- specific workarounds harder to find and makes editing your styles even more difficult.

A better way of dealing with Internet Explorer is to place those specific styles in external style sheets, and then pass them to Explore through the use of what we call conditional comments. So here I have the tours.htm file open. And what I want to do is go ahead and just preview this page in Internet Explorer, so we can see what the issue is. So here we are in Internet Explorer, and right now everything looks fairly o...

Using conditional comments for Internet Explorer
Video duration: 6m 58s 4h 40m Intermediate

Viewers:

Using conditional comments for Internet Explorer provides you with in-depth training on Web. Taught by James Williamson as part of the Managing CSS in Dreamweaver

Subject:
Web
Software:
Dreamweaver
Author:
please wait ...