| darrel 2004-09-16, 4:13 pm |
| > Is there some bad habit I've developed that I don't know about that's
> causing these problems?
Hard to say what's causing the problem without seeing your actual site/page.
As for the above, you do have a bad habit of naming your classes based on
the visual style. It's better to name them based on the logical/semantic
meaning.
Ie, if the links in your footer navigation are green, it's better to use
'.footer' as a name rather than '.greenLink'
Also, I can't say without seeing your HTML, but you're probably using an
unecessary aboune of class declarations in your HTML. It's sometimes easier
to wrap all of the links in a wrapper and declare the CSS as such:
..wrapperClass a:link
> How would YOU optimize the way these styles are laid out?
Again, it depends on what your HTML looks like.
-Darrel
|