Skip to main content
4 events
when toggle format what by license comment
Dec 13, 2013 at 10:32 comment added Dmitri Zaitsev @Yaoki Every selector is element selector :) Any DOM node is called element. Id selectors have their use for unique elements that you don't want to repeat by mistake. "col-12" class is still semantic but serves different purpose - declaring exactly those. So specific declarations only for 'col-12' will go in that class but for anything else I would add other classes.
Dec 13, 2013 at 10:25 history edited Dmitri Zaitsev CC BY-SA 3.0
added 187 characters in body
Dec 13, 2013 at 10:03 comment added X ' Thanks, this is just what I needed! I think I understand what you mean by avoid assigning specific styles to generic selectors. So, when would you style an element selector? Also, would you say it's better to use class selectors over element or id selectors? My main worry about using class selectors is how to remain semantic when building a grid (i.e., ".col-12" vs ".copyright"). I'm not sure what the best practice is as it seems unavoidable to use unsemantic class names.
Dec 13, 2013 at 7:48 history answered Dmitri Zaitsev CC BY-SA 3.0