The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS id’s or classes

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #39137

    I am quite new to CSS (writing efficient css) and I just came across this article:

    So I read, that ID’s are more efficient and faster than classes, so I changed all my selectors with classes that only appear once on the HTML page to ID’s
    Than I ran my CSS in CSSLint and I get bunch of warnings saying “Don’t use IDs in selectors”
    Can someone shed some light on this please.
    Thank you.

Viewing 1 post (of 1 total)
  • The forum ‘CSS’ is closed to new topics and replies.