[thelist] Vista font sizes in CSS

Mark Howells webdev at mountain.ch
Fri Jul 6 04:59:29 CDT 2007

>> That is what the use of conditional comments is: browser detection!
> At's hardly the same as the huge amount of code needed to  
> accurately* detect
> browser versions.

Using conditional comments at all is an instant filter to identify  
one browser, namely IE on Windows, and a simple version test filters  
it right down to the precise version number. That doesn't look like a  
"huge amount of code" to me. (We're talking about identifying  
specific versions of IE on Windows here, not any other browser.)

<!--[if gte IE 4.9999]>
<script type="text/javascript" src="ie5_plus.css"></script>
<!--[if IE 7.05]>
<script type="text/javascript" src="ie7-0-5.css"></script>

> And you're not really 'detecting' anything with a CC, just
> directing a specific set of browsers

Err... I don't see that there's a difference between detecting a  
browser and loading specific stylesheets, and .... er.... detecting a  
browser and loading specific stylesheets! :-)

Mark Howells
- www.permanenttourist.ch
- www.flickr.com/photos/mhowells/

More information about the thelist mailing list