Forums

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

Home Forums CSS CSS naming conventions? Re: CSS naming conventions?

#111837
Senff
Participant

I’ve used PascalCase in the past, and camelCase too. However, now I just use dashes, it’s just more clear.

It comes down to preference and personal style (or team) style. Another question you might ask is how you would name buttons or other specific elements. Some do btnSumbit, others do submit-button, and then some do btnSbmt.

In essence, it comes down what you prefer or what the team members agree upon.