Microsoft actually helps me...

Marjolein made a new design for her website. And of course, I turned it into HTML. This design uses two stylesheets, one for Internet Explorer, and one for real browsers ;) . Anyway, A simple browser check is easy in PHP, but we're also using Nucleus for her weblog, and in the skinning system Nucleus uses, it's not possible to use PHP. Rakaz, however, had the solution. It seems Microsoft has built a system called Conditional Comments into their Internet Explorer browser. Using that, you can let IE do something that other browsers won't do (since other browsers will just see it as regular comments). A very interesting concept that is quite useful, because it makes it easier to make work-around for IE non-standards issues. So now everything works again, the IE stylesheet is loaded when people browsing with IE come by. The code I used is quite simple:

This ensures the tearsong.css is loaded for all browsers, but only IE will load the IE-specific CSS.

Marjolein made a new design for her website. And of course, I turned it into HTML. This design uses two stylesheets, one for Internet Explorer, and one for real browsers ;) . Anyway, A simple browser check is easy in PHP, but we're also using Nucleus for her weblog, and in the skinning system Nucleus uses, it's not possible to use PHP. Rakaz, however, had the solution. It seems Microsoft has built a system called Conditional Comments into their Internet Explorer browser. Using that, you can let IE do something that other browsers won't do (since other browsers will just see it as regular comments). A very interesting concept that is quite useful, because it makes it easier to make work-around for IE non-standards issues. So now everything works again, the IE stylesheet is loaded when people browsing with IE come by. The code I used is quite simple:
<link rel="stylesheet" href="http://www.tearsong.com/tearsong.css" type="text/css" /> <!--[if IE]> <link rel="stylesheet" href="http://www.tearsong.com/tearsong-ie.css" type="text/css" /> <![endif]-->
This ensures the tearsong.css is loaded for all browsers, but only IE will load the IE-specific CSS.
Add comment

Comments

gravatar Steef: This might be very handy of course, but I think it is actually an attempt of Microsoft to continue not comlying to the w3c standards and maintaining their own.



May 28, 2005
gravatar coach outlet online: If you buy Coach items at the
coach outlet online

store, the goods will be sent out within 24 hours after confirming your payment and arrive to your door within 7 work days.No one can deny the shopping at the
coach factory outlet

is satisfactory. For the low prices and good quality.
January 29, 2012
gravatar coach outlet: coach outlet

handbags You can not just save your cash but also your time inside a convenient way to obtain the exact same bags product and do not be concerned the shippment of one's products.The
coach outlet store online

are utilized for formal event in company area that will display your excellent taste.Not only does a briefcase make is easier to carry things.
January 29, 2012
gravatar michaels furniture: i found your site on google, thanks for putting up such a nice blog.
March 9, 2012
gravatar Barbour quilted jacket : Barbour is a old brand come from UK. In European Barbour Jacket just as you have an admission tickets to enter high society. And the Barbour coat still won Queens Award for their excellent quality. Welcome to barbour store online http://www.barbourjk.com/ .Now barbour store will show you many barbour wax jackets style which you can use in any situation. Give one barbour quilted jacket and it will bring you convenient life and outstanding feeling. There are variety of mens jacket, barbour ladies jacket and Kids jackets here. The high quality barbour international jacket you can’t miss.
May 2, 2012

Php5_zce_logo

Upcoming events

I will be speaking 05-06-2012: Forum PHP
I will be attending 06-06-2012: Symfony Live Paris 2012
I will be attending 07-06-2012: Symfony Live Paris 2012
I will be attending 08-06-2012: Symfony Live Paris 2012
I will be attending 09-06-2012: Symfony Live Paris 2012
I will be attending 23-06-2012: PHP TestFest NL

Tags

1337 2008 2010 2011 4developers access modifiers accessibility AdaLovelaceDay09 advent agavi agile alfred amsterdam apache api apple article articles atk atkMetaNode audioscrobbler autoloading automation azure backwards compatibility barcelona barcodes bash bbc bbq beatstad belgium best practices bittorrent blogging blogs boards of canada book books bughuntday bundle caching cake cal evans calendar career cat cerf certificate cfp cilex clear cms cologne common sense communities community components composer conference conferences contest continuous integration contribute contribution crisis css curl custom d-day datetime DbFinderPlugin decorator decorators deployment deps devdays development directoryindex directoryiterator docblox doctrine documentation download dpc dpc09 dpc10 dpc11 DPC2008 dreamhost drupal dv7 eclipse ed editors efficiency enterprise errors event events expertise ezcomponents facebook filter-branch filteriterator finland flickr fork framework frameworks freelance freeze frontend fun game games geoip germany getting real git github globiterator gnome-do google google calendar googletalk graceful degradation hack hackers hidden gem hiphop howto hp HR html http i386 ibuildings icann ide ideasofmarch idm imovie inclusivity indy ingewikkeld integration international php conference internet interview ipad IPC ipc ipc08 ipc10 ipc11se iterators iterm2 javascript jenkins jenkins-php job job openings jobeet john peel joomla joomladays kiva kubuntu launcher launchy left on the web libcurl libraries library lighttpd lime linktuesday linux live london loudblog m2ts mac magazines malware mambo marjolein mediterra meeting meme meta methodology micro-financing microframework microsoft migration movie music mysql namespace namespaces netbeans netherlands newsfire nllgg northeastphp nos odmarco open source opinion ORM osx paradiso paris partnership pavilion pear pecl performance personal pfc10 pfc11 pfcongres pfcongrez pfz photo php PHP php5.3 phpabstract phpazure phpBB phpbb phpbelgium phpbenelux phpbnl10 phpday phpdoc phpdocumentor phpgg phpitalia phpnw phpnw08 phpnw11 phpstorm phptek phptek09 phpuk2009 phpUnderControl phpunit php|architect php|tek podcast politics portability postcrossing presentation presentations private projects protected prototype PSR-0 public python qa qr codes re2c recruiting refactoring review rewrite ruby on rails san francisco schedule scifi script security sensio seven things sfdaycgn sflive2011 shell scripting silex simplexml slides smfony software sogeti solar sound speakers spl ssh standard standards star trek static steer strings stylesheets subversion symfony symfony live Symfony2 symfonycamp symfonyday symfonylive symfonyUnderControlPlugin talk talks tech techademy technology techportal tek09 telecommuting terratec terrorism testfest testing textmate textpattern the right tool timeout tips tld todo tomas tools training twig uncon unet usability usergroup validation vhost video vim vinyl virus warp webinar weblogging webservices wiki windows winphp women wordpress work workshop world world of warcraft wpi writing wunderlist xml xpath xsd yara year youtube zc11 ZCE zemanta zend zend framework zend server zend studio zendcon Zend_Form zite
© 2004 - 2012 Stefan Koopmanschap + Powered by Symfony, photos powered by Flickr, links powered by Delicious, Shanghai smilies by Iconbuffet. Feeds: rss / atom. Left on the Web v4.4.0.1