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

Home Forums CSS Parenting/reusing CSS styles Reply To: Parenting/reusing CSS styles


my example of modifiers is also modular/interchangable

No it’s not. How would you apply background of red to something other than a box?

Adding namespace to CSS just seems weird and this is the first time I’ve ever heard someone mention namespaces with conjunction to CSS and I’ve been around a while.

@oliversb, look into OOCSS, BEM, and SMACSS. The key to reusable code is abstraction. Follow people like Harry Roberts, Jonathan Snook and Nicole Sullivan. Read their stuff.