I am trying to find a tutorial online or some advice in order to construct and name my class names in the css file or files, in a way to avoid frustration, enhance readability and re usability.
Any tips or tutorials around?
I am trying to find a tutorial online or some advice in order to
Share
Name your classes based on what kind of content they are rather than the styles being applied or their location. For example
div.navigationis better thandiv.leftSidebar, which is better thandiv.grayBox.For more information and examples, read this.