Skip to content

Instantly share code, notes, and snippets.

@pebreo
Last active August 29, 2015 14:22
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 pebreo/e7ff4ac550a7db90cd3e to your computer and use it in GitHub Desktop.
Save pebreo/e7ff4ac550a7db90cd3e to your computer and use it in GitHub Desktop.
Bootstrap3 + HTML

Overview

  • div and spans are grouping tags

  • class tags are mostly used for assigning styling to a div

  • class assigniments to an element are additive e.g. `class = 'class1 class2'``

  • the class definition in CSS file/block that's more bottom takes precedence over the one on top, e.g. :

.class2 {
  color: red;
}
/* this takes precedence */
.class1 {
  color: green;
}

Example: https://jsfiddle.net/vfyo05k4/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment