Chapter 7
CSS Values: Color and Sizing
Now that we’ve learned how to make our site’s skeleton, it’s time to start fleshing it out with some more CSS values. In this chapter, we’ll learn about two of the most important kinds of values that CSS can apply to HTML elements: color and sizing. These will allow us to go from putting elements on a page (Chapter 6) to controlling the color of the elements and how big they are.
Values in a CSS declaration (Figure 5.9) can take a lot of different forms, from numbers, to dimensions, to idiosyncratic options, to colors, etc. On top of all that, there are shorthand methods that let you write multiple style properties and values on a single line. Most CSS declarations are self-explanatory—not too many people ...
Get Learn Enough HTML, CSS and Layout to be Dangerous: An Introduction to Modern Website Creation and Templating Systems now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.