Avoid CSS Hacks
When you create your shiny new designs, no doubt you view it as your going along in your favourite browser. But I’m sure like myself you have encountered rendering problems between browsers. Some of the incompatibilities include:
- Padding and margin inconsistencies.
- PNG transparency problems in IE5.5/6.
- IE :hover only on anchors.
- Background image inconsistencies.
You have a few options at this point.
- Use CSS hacks for different browsers.
- Change your design to work in all browsers (possibly at the expense of your overall design).
- Detect the browser and serve a completely different stylesheet for each different browser.