DEV Community

Discussion on: Improve your CSS with whitespace and comments

Collapse
 
joshichinmay profile image
Chinmay Joshi

The second example looks better to me. It gives the precise idea of the style implemented for the class.
Some people prefer descriptive class names over comments. They want their file to be 'comment-less'.

Check out this video mdo-ular-css and website for more information about the best practices to write CSS. I follow his guidelines in my implementation.