Skip to content

Instantly share code, notes, and snippets.

@laurendorman
Last active November 14, 2015 16:12
Show Gist options
  • Save laurendorman/497e58b16aa85df89c7f to your computer and use it in GitHub Desktop.
Save laurendorman/497e58b16aa85df89c7f to your computer and use it in GitHub Desktop.
Utility CSS classes for projects of all sizes.
// Utilities
// Layout
.inline { display: inline }
.block { display: block }
.inline-block { display: inline-block }
// Overflow
.overflow-hidden { overflow: hidden }
.overflow-scroll { overflow: scroll }
.overflow-auto { overflow: auto }
// Clearing
.clearfix { clear: both }
.clear-left { clear: left }
.clear-right { clear: right }
// Floating
.float-left { float: left }
.float-right { float: right }
// Font Display Properties
.bold { font-weight: bold }
.regular { font-weight: normal }
.italic { font-style: italic }
.uppercase { text-transform: uppercase }
// Text Alignment
.left-align { text-align: left }
.center { text-align: center }
.right-align { text-align: right }
.justify { text-align: justify }
// White Space
.nowrap { white-space: nowrap }
// Positions
.relative { position: relative }
.absolute { position: absolute }
.fixed { position: fixed }
// Display & Visibility
.display-none { display: none }
.hidden { visibility: hidden }
.visible { visibility: visible }
.collapse { visibility: collapse }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment