0

I was reading this:

"Guideline Number 7: Try to avoid using unecessary classes and IDs.

So, now that we’re keeping our hooks to a minimum, it’s time for our next step in quality over quantity: naming. We want to avoid names that imply presentational aspects. Otherwise, if we name something right-col, it’s entirely possible that the CSS would change and our “right-col” would end up actually being displayed on the left side of our page. That could lead to some confusion in the future, so it’s best that we avoid these types of presentational naming schemes."

So what do I call them if not right-col and not presentational?!?!

1
  • Please strive for a better question topic next time. Commented Dec 7, 2010 at 22:54

6 Answers 6

1

I discuss this very topic in "How to Develop with CSS". What you call it depends on the content. Maybe "sidebar" or "links" or "extra".

Sign up to request clarification or add additional context in comments.

Comments

1

any naming technique has advantages and disadvantages...try to find a way that help you more in your work, and make well commented css files.

Comments

1

Rather than naming things after their presentation name them for their function, or purpose. Also, try to use a coherent page structure so far as possible, and use the CSS cascade to access/target elements.

Comments

1

As long as it conveys meaning for the html structure and other developers can understand well it should be fine.

Comments

0

check out 960.gs using that gridsystem will save a lot of time, trying to figure out the best naming scheme.

Comments

0

NCSS Sheets is a naming convention and guideline for semantic CSS: CSS class naming convention

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.