Skip to content

Instantly share code, notes, and snippets.

@groundedsage
Forked from jonathantneal/README.md
Created August 28, 2018 11:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save groundedsage/d9ae1d0f1a5c1b830f2c18962499aef4 to your computer and use it in GitHub Desktop.
Save groundedsage/d9ae1d0f1a5c1b830f2c18962499aef4 to your computer and use it in GitHub Desktop.

CSS properties that trigger layout

  1. border, border-collapse, border-width
  • box-sizing
  • float
  • font, font-family, font-size, font-weight, line-height
  • height
  • letter-spacing
  • margin
  • max-height
  • max-width
  • min-height
  • min-width
  • overflow, overflow-x, overflow-y
  • padding
  • position, position: relative + ( bottom, left, right, top )
  • text-align
  • vertical-align
  • white-space
  • width
  • word-break
  • word-spacing
  • word-wrap
  • zoom

And possibly:

  1. transform
  • flex

transform doesn't affect sizing (though it does affect scroll area). — @tabatkins

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment