Skip to content

Instantly share code, notes, and snippets.

View jaimyvangerrevink's full-sized avatar

Jaimy van Gerrevink jaimyvangerrevink

View GitHub Profile
@AdamMarsden
AdamMarsden / cssdo.md
Last active July 30, 2024 15:28
CSS Declaration order

CSS Declaration Order

Related property declarations should be grouped together following the order:

  • Box
  • Border
  • Background
  • Text
  • Other

Box includes any property that affects the display and position of the box such as display, float, position, left, top, height, width and so on. These are most important because they affect the flow of the rest of the document.