Forums

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

Home Forums Design Some feed back on my mark-up. Reply To: Some feed back on my mark-up.

#199829
Johannes
Participant

Re: Classes vs ID’s

The general consensus on the topic is: When working on small projects it doesn’t really make a difference, work the way you are comfortable, using ID’s for unique content is fine as long as you are 100% sure you couldn’t use the styles somewhere else.

However, when working as a team or on larger projects you should start thinking about the various types of CSS systems out there and pick one, I personally use SASS along with elements of OOCSS, saving ID’s for JavaScript purposes. I change all the time. Looking into BEM (thanks to the recent article here on CSS tricks).

Of course, coding is largely personal preference but these systems were created for a reason and don’t let your own code prejudices blind you, take some time to research, experiment and grow :)