CSS Properties
CSS Properties
Cheat Sheet
- `margin-top`, `margin-right`, `margin-bottom`, `margin-left`: Sets the margin space on individual sides of an element.
- `padding-top`, `padding-right`, `padding-bottom`, `padding-left`: Sets the padding space on individual sides of an element.
- `border`: Sets the properties for all four sides of an element's border.
- `border-top`, `border-right`, `border-bottom`, `border-left`: Sets the properties for individual sides of an element's border.
- `box-sizing`: Specifies how the total width and height of an element is calculated.
Positioning
- `position`: Specifies the positioning method of an element.
- `float`: Places an element on the left or right side of its container, allowing text and
inline elements to wrap around it.
- `caret-color`: Sets the color of the text cursor (caret) in input elements.
Transformations
- `transform`: Applies 2D or 3D transformations to an element.
- `flex-wrap`: Specifies whether flex items should wrap if they overflow the container.
- `justify-content`: Aligns flex items along the main axis of a flex container.
- `align-items`: Aligns flex items along the cross axis of a flex container.
- `align-content`: Aligns a flex container's lines within the flex container when there is extra space
Layout
`order`: Specifies the order of a flex item relative to the other flex items in the container.