Everyone has had to use a hack or two to get their site to display the same in all the major browsers. 99% of the time Internet Explorer is screwing with something. The problem is, using “hacks” like * html .className makes your CSS invalid. Some people are bothered by this, others don’t care (as long as it works, its fine by me).
One solution is to parse the user agent with PHP and determine which browser the visitor is using. We can then format that information however we would like and apply the CSS tags to any element on our site. The easiest would be to add these custom tags to the
tag and only have to reference it in one place.