A beginner-friendly introduction to CSS covering the core building blocks of web styling. Topics include the five basic selector types (universal, class, ID, type, attribute), selector grouping and combining, CSS units (absolute vs. relative: px, %, vw, vh, em, rem, ch, ex), value types, shorthand properties, CSS custom properties (variables) with fallbacks and nesting, the calc() function for dynamic layouts, and the five CSS positioning types (static, absolute, fixed, relative, sticky).
Table of contents
Introduction to CSS Copy link Link copied!Selectors Copy link Link copied!Unit & value types Copy link Link copied!Variables Copy link Link copied!Positioning Copy link Link copied!We have more to learn Copy link Link copied!Sort: