Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


Share this Page URL
Help

CHAPTER 3: CSS Primer > Understanding CSS Units - Pg. 88

CHAPTER 3 CSS PRIMER Tip These specificity rules are applied only to styles that are defined at the same cascade level. This means that a property defined in a style attribute will always take precedence over a style defined in a style element, for example. Understanding CSS Units Earlier in the chapter, I showed you the values that the browser uses by default for some CSS properties. These are the style convention for some of the elements in the examples, and I have duplicated this information in Table 3-8. Table 3-8. Some CSS Properties and Their Values Property color background-color font-size h1 black transparent 2em h2 black transparent 1.5em p black transparent 16px