This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > September 2004 > Re: - What am I doing wrong with my stylesheets?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: - What am I doing wrong with my stylesheets?
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


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews