Rules of Thumb and Common Pitfalls
The following are the most common problems I have experienced myself and have witnessed in my CSS students:
- Syntax errors: check both your HTML and your CSS W3C validators. Syntax problems can lead to display problems, especially in IE.
- When checking the results of your coding, perform it in the following order:
- Firefox
- Safari
- Chrome
- Netscape (optional)
- IE8, IE7, IE6
- Opera
- Other
- Ensure that IDs are used only once on a page. Use IDs (not classes) for primary space containers.
- Redefine tags within containers.
- Only use classes as a last resort (e.g. the exception to the rule)
- If you have made code changes but do not see them reflected in your browser:
- Clear your browser’s cache
- Make sure that you updated the correct file and uploaded it to the correct location!
- When you have completed your first round of CSS development, go back through the code and see if you have any redundant or unnecessary definitions.
All photographs taken on location by A. E. Shroeder
TIP
Is your web site accessible to those with visual disabilities? Perform a quick test.
