Skip to content

Instantly share code, notes, and snippets.

@trotzig
Last active August 29, 2015 14:05
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 trotzig/01e98533870f2f3e85ac to your computer and use it in GitHub Desktop.
Save trotzig/01e98533870f2f3e85ac to your computer and use it in GitHub Desktop.
/**
* We need to clear floats for the container so that it wraps
* the content nicely.
*
* Clearfix technique from http://nicolasgallagher.com/micro-clearfix-hack/
*/
.chip:before,
.chip:after {
content: " ";
display: table;
}
.chip:after {
clear: both;
}
.chip__img {
float: left;
width: 20%;
}
.chip__info {
float: left;
width: 50%;
margin: 0 5%;
}
.chip__action {
float: right;
width: 20%;
margin-top: 7px; /* Magic number to get vertical centering of the button right */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment