How CSS WorksVersions of CSSBrowser PrefixesWhere CSS GoesEmbedded StylesStylesheetsInline StylesThe CascadeHow It WorksImportantInline StylesIDsClasses, Attributes, and Pseudo-classesElements and Pseudo-elementsInherited RulesDefault ValuesWhat If Anything Conflicts?Using the CascadeDefault Values and ResetResetInherited RulesElementsEverything ElseKeeping It SimpleCommentsOrganizing Your StylesheetThe Box ModelMeasurementsEmsHeight and WidthMargins and PaddingBordersBox-SizingdisplayPositioningStaticRelativeAbsoluteFixedMeasurements for Positioned Elementsfloat and clearBasic StylesSummary