September 2008
Monthly Archive
Monthly Archive
Posted by Sam on 21 Sep 2008 | Tagged as: Internets, Web development
The recent massive improvements in JavaScript performance are absolutely awesome for a number of reasons:
And on a completely unrelated note, I found a cool page that beautifully sums up the options for IE when it comes to exploiting CSS hacks. Whilst I knew most of the hacks on the page, this inline rule was quite interesting:
style=”*background:red!important;background:white!important;background:blue;”
The first background rule applies to IE7 only, the second to all other (more advanced) browsers, and the last one to IE6 only. While inline CSS is not good for obvious reasons, I have found this hack to be quick and useful when restricted by bad design in some of our older sites.
Edit: This can also be used in external CSS files, as shown by this neat tutorial. Furthermore, it shows that we can combine the star hack (applies to IE6 and 7) with the underscore hack (applies only to IE6), to produce a more streamlined version of this style attribute:
style=”*background:red;background:white;_background:blue;”