Nearly everything you do with CSS involves units for determining the look and formatting of your web page elements. With this concise guide, you’ll learn how to work with an array of units—including measurements and keywords—that help you define color, text, distance between elements, location of external files, and other values.
This book contains chapters from the upcoming fourth edition of CSS: The Definitive Guide. When you purchase either the print or the ebook edition of Values, Units, and Colors, you’ll receive a significant discount on the entire Definitive Guide when it’s released. Why wait when you can learn how to use units and other key CSS3 features right away?
- Use RGB or HSL values to mix your own colors, and designate the degree of opacity
- Learn how to apply global keywords introduced in CSS3
- Use string values to wrap a sequence of text characters in quotes
- Describe margins, letter spacing, and other properties, with either fixed or relative length units
- Understand how number, integer, and percentage values differ
- Explore CSS3 unit types for describing display resolution
- Use time values for transitions and animations