List of common CSS Properties

A quick reference of the most used CSS properties. Click the chapter links to learn each group in detail.

Text and fonts

PropertyUse
colorText colour
font-family, font-size, font-weightFont. See CSS Fonts
text-align, text-decoration, text-transformSee CSS Text
line-height, letter-spacingSpacing in text

Box model

PropertyUse
width, height, max-width, min-heightSize. See CSS Height and Width
paddingInside space. See Padding
marginOutside space. See Margins
border, border-radius, outlineBorders. See Borders
box-sizingSee Box Model

Background and effects

PropertyUse
background-color, background-imageSee CSS Background
box-shadow, text-shadowSee Shadows
opacitySee Opacity
transition, animation, transformSee Transitions and Animations
filterBlur, grayscale and more

Layout

PropertyUse
displaySee display
position, top, left, z-indexSee Position and z-index
float, clearSee Float
flex, justify-content, align-itemsSee Flexbox
grid-template-columns, gapSee Grid
overflowSee Overflow

Lists and tables

PropertyUse
list-styleSee CSS Lists
border-collapseSee CSS Tables

Congratulations! Chapter Finished. Learn more about the similar topics:
Exercises & Assignments
No Content Found.
Interview Questions & Answers
No Content Found.