Skip to content

Instantly share code, notes, and snippets.

@VictorOmondiCDS
Last active August 10, 2019 05:47
Show Gist options
  • Save VictorOmondiCDS/f5e0e678cfa76e665619bd9dd607a17d to your computer and use it in GitHub Desktop.
Save VictorOmondiCDS/f5e0e678cfa76e665619bd9dd607a17d to your computer and use it in GitHub Desktop.
CSS BOX-SIZING TIP FOR BEGINNERS

CSS tip for beginners:

Ever saw this piece of code at the top of a CSS file?

{
  box-sizing: border-box;
}

It is used to prevent breaking box dimensions with margin, padding or borders.*

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