Embed presentation
Downloaded 12 times




![How to Calculate SpecificitySelector Types1. ID selectors (e.g., #example).2. Class selectors (e.g., .example), attributes selectors (e.g., [type="radio"]) and pseudo-classes (e.g., :hover)0 , 0 , 0 , 01 point ifIt’s Inline1 point foreach IDselector1 point foreach classselector1 point foreach typeselector](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2frocksolidcssarchitecture-160918012141%2f75%2fRock-Solid-CSS-Architecture-5-2048.jpg&f=jpg&w=240)












![BaseBase rules are the defaults. They are almost exclusively single element selectorsbut it could include attribute selectors, pseudo-class selectors, child selectors orsibling selectors. Essentially, a base style says that wherever this element is onthe page, it should look like this.h1 { font-size: 2em;}p { color: grey;line-height: 1.6em;font-family: helvetica, sans-serif;}input[type=”text”]{ border: solid 1px blue;}…Base rules are styledusing type selectors sothey have low specificity.](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2frocksolidcssarchitecture-160918012141%2f75%2fRock-Solid-CSS-Architecture-18-2048.jpg&f=jpg&w=240)










The document outlines the evolution and significance of CSS, detailing its history, architecture principles, and methodologies such as OOCSS, BEM, SMACSS, and Atomic CSS. It explains concepts like separation of concerns, specificity in selectors, and various architectural approaches to make CSS more maintainable and scalable. Additionally, it introduces tools like Atomizer for dynamically generating stylesheets to optimize CSS usage.




![How to Calculate SpecificitySelector Types1. ID selectors (e.g., #example).2. Class selectors (e.g., .example), attributes selectors (e.g., [type="radio"]) and pseudo-classes (e.g., :hover)0 , 0 , 0 , 01 point ifIt’s Inline1 point foreach IDselector1 point foreach classselector1 point foreach typeselector](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2frocksolidcssarchitecture-160918012141%2f75%2fRock-Solid-CSS-Architecture-5-2048.jpg&f=jpg&w=240)












![BaseBase rules are the defaults. They are almost exclusively single element selectorsbut it could include attribute selectors, pseudo-class selectors, child selectors orsibling selectors. Essentially, a base style says that wherever this element is onthe page, it should look like this.h1 { font-size: 2em;}p { color: grey;line-height: 1.6em;font-family: helvetica, sans-serif;}input[type=”text”]{ border: solid 1px blue;}…Base rules are styledusing type selectors sothey have low specificity.](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2frocksolidcssarchitecture-160918012141%2f75%2fRock-Solid-CSS-Architecture-18-2048.jpg&f=jpg&w=240)








