CSS Tricks
- Some CSS tricks I've picked up when building this site
Preamble
During the development of this web site I collided headlong into the problems encountered when trying to develop cross-browser web sites. The initial CSS layout was based upon one found at bluerobot, which I then fiddled with to try and achieve the look I was after. Web development isn't my primary interest though, and this maybe explains in part the awful design decisions I've made :)
Accomodating Internet Explorer in your CSS
Nevertheless, experimentation with the browser-specific voice-family hack found in the bluerobot CSS led me to discover that Internet Explorer parses the CSS rules in a case-insensitive manner, whilst the gecko-based browsers I tested exhibited the correct case-sensitive behaviour. This can be seen in the CSS of this site, where I first use the correct CSS (always using lowercase) to define the transparent backgrounds I want, and then override them in iebodges.css with uppercase versions of the rules, i.e.
base1.css
...and then in...
iebodges.css
Thus allowing me to use correct CSS and yet still cater for the great unwashed still using Internet Exploder, neat huh?