Skip to content

Instantly share code, notes, and snippets.

@markjames
Created June 28, 2011 10:40
Show Gist options
  • Save markjames/1050886 to your computer and use it in GitHub Desktop.
Save markjames/1050886 to your computer and use it in GitHub Desktop.
Units/Groups
<style>
/*
The .unit class indicates a single page item (e.g. a latest news list). Units cannot be nested.
The .group class indicates a collection of units.
*/
.unit:before, .unit:after, .group:before, .group:after { content: "\0020"; display: block; height: 0; overflow: hidden; }
.unit:after, .group:after { clear: both; }
.unit, .group { zoom: 1; }
</style>
e.g.:
<nav id="unit-section-links" class="unit unit-list">
...
</nav><!-- /#unit-section-links -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment