CSS Reference
Background | Border | Margin | Padding | Dimension | Positions | Text | Font | Lists and Markers | Classification | Table | Outline | Pseudo Classes | Pseudo Element
Table
| Property | Description | Value |
|---|---|---|
| border-collapse | Sets the border model of a table. | collapse separate |
| border-spacing | Sets the distance between the border with adjacent cells. | length |
| caption-side | Sets the position of caption. | top right bottom left |
| empty-cells | Sets whether empty cells should have border or not. | show hide |
Outline
| Property | Description | Value |
|---|---|---|
| outline | A shorthand to sets all outline properties. | outline-color outline-style outline-width |
| outline-color | Sets the color of the outline. | color invert |
| outline-style | Sets the style of the outline. | none dotted dashed solid double groove ridge inset outset |
| outline-width | Sets the width of the outline. | thin medium thick length |
Pseudo Classes
| Property | Description |
|---|---|
| :active | Add style to active links. |
| :focus | Add style to focus element. |
| :hover | Add style to an element when you mouse over it. |
| :link | Add style to an unvisit links. |
| :visited | Add style to visited links. |
| :first-child | Add style to first child element of specific element. |
| :lang | Define language of specific element. |
Pseudo Element
| Property | Description |
|---|---|
| :first-letter | Add style to first letter of the text. |
| :first-line | Add style to first line of text. |
| :before | Insert content before an element. Not support in most browser. |
| :after | Insert content after an element. Not support in most browser. |