Call (877) SITE-OPT (748-3678)

Code: Conditional Comments

From Chapter 7: CSS Optimization

For example, to remedy the lack of :hover support for list items in Internet Explorer 6, CableOrganizer included the behavior fix only for Internet Explorer 6 with conditional comments, like this:

<!--[if IE 6]><link rel="stylesheet" href="
ie6home.php" type="text/css" /><style type="text/css">body {behavior:url(http://;}</style><![endif]-->

The Internet Explorer behavior file from Peter Nederlof (the whatever:hover) uses JScript to attach the :hover event to any element (see

Copyright © 2002-2018 Website Optimization, LLC. All Rights Reserved - Free website speed test - Privacy Policy
Last modified: February 19, 2009.

Follow us on: Twitter, Google+, Facebook, Linked In