Skip to content

Instantly share code, notes, and snippets.

@Bodacious
Created October 7, 2011 12:53
Show Gist options
  • Save Bodacious/1270223 to your computer and use it in GitHub Desktop.
Save Bodacious/1270223 to your computer and use it in GitHub Desktop.
Modular CSS Example
body{
/* styles that apply globally go here */
.hidden{
display: none;
visibility: hidden;
}
}
body.blog{
/* styles that only apply to blog pages go here
article.blog{
/* it's really easy to maintain your CSS if you break it up this way /*
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment