Join James Williamson for an in-depth discussion in this video Common units of measurement, part of CSS Fundamentals.
- View Offline
- [Voiceover] In this movie, I want to cover another topic…that you're gonna come across again, and again,…and again when learning CSS.…That is, how to declare units of measurement…for certain properties.…Now man of the property values that you'll see in CSS…require what's known as as a length.…Within a specification, you'll often see them refered…to like this, where the length notation is in brackets,…so, what's a length?…Well, a length is really nothing more than a numeric value…followed by a unite of measurement.…In CSS syntax, there is no white space between…the number and the unit itself.…
There are a couple of exceptions to this rule,…but by and large, this is the syntax…that you're gonna be using.…Obviously, if you're not familiar with…the units of measurement in CSS…and when it's appropriate to use one over another,…declaring values for properties can get a little confusing.…Most the time, you're gonna see units referred to in…the specifications as being either absolute or relative,…and that's typically how you're gonna see…
CSS Fundamentals covers the basic concepts, terminology, and techniques you need to read and write CSS. It's for people who want a big-picture overview before taking hands-on courses. Author James Williamson explains how CSS affects text, borders, backgrounds, and images; how CSS works with HTML; and how the W3C's evolving CSS specification impacts designers. He also reviews some of the most popular CSS editors and frameworks and lists online tools and resources for further study.
- What is CSS?
- Basic selector types
- Using CSS with HTML
- How browsers render CSS differently
- Exploring CSS specifications
- Checking browser support
- Working with fonts
- Understanding the box model
- Adjusting margins and padding
- Positioning elements
- Basic CSS layout concepts
- Media types and media queries
- Working with CSS frameworks and CSS grids