Common CSS Mistakes

July 30th, 2009 0 Comments

Here are a few common CSS mistakes I come across all the time. Yes these solutions might work when first developing in Firefox but these can cause major headaches when doing IE testing, debugging or making edits to the code in the future.

Don’t over use negative margins

Yes there is a time and place for negative margins. But if your find yourself using these on a daily basis then there’s probably and easier and better way to fix what you’re doing. Most likely a padding or margin on a parent element that can be adjusted. Use the box model properly, it makes debugging and editing the css later on much easier.