[element].[classname] vs. .[classname] in CSS
June 20, 2014 8:11 AM Subscribe
If I plan to define a CSS class to style only one type of element, is it a good idea to write the selector, for example, as img.gallery
rather than simply .gallery
? Seems that it would make the CSS a little more human-readable.
posted by markcmyers to Technology (7 answers total) 3 users marked this as a favorite