Forums

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

Home Forums Other HTML/CSS: Choosing semantic naming conventions Re: HTML/CSS: Choosing semantic naming conventions

#114681
TheDoc
Member

That particular element might not repeat, but the things *inside* of it mights.

So it gets a bit tricky if you accidentally do something like

#content .cool-class { }
…later in the CSS file…
.something-else .cool-class {
/* won’t get used since the ID takes over */
}