Forums

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
    Posts
  • #39137
    jurotek
    Participant

    I am quite new to CSS (writing efficient css) and I just came across this article:
    https://css-tricks.com/efficiently-rendering-css/

    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.