text slow slice text slow slice text slow slice text slow slice text slow slice text slow slice text slow slice text slow slice text slow slice text slow slice text slow slice text slow slice text slow slice text slow slice text slow slice text slow slice text slow slice text slow slice text slow slice text slow slice text slow slice text slow slice text slow slice

Cheat Sheet

Stuff I find myself looking up over and over.

Ipsum Generators

CSS

When margin: 0 auto; won't center, check:

  • must be display: block
  • can't float
  • can't be position fixed or absolute
  • width in pixels or percent

Bootstrap

Breakpoints

// Extra small devices (portrait phones, less than 576px)
// No media query since this is the default in Bootstrap

// Small devices (landscape phones, 576px and up)
@media (min-width: 576px) { ... }

// Medium devices (tablets, 768px and up)
@media (min-width: 768px) { ... }

// Large devices (desktops, 992px and up)
@media (min-width: 992px) { ... }

// Extra large devices (large desktops, 1200px and up)
@media (min-width: 1200px) { ... }

Column Classes

  • xs (for phones)
  • sm (for tablets)
  • md (for desktops)
  • lg (for larger desktops)
Bootstrap Layouts