Last active
August 29, 2015 14:05
-
-
Save trotzig/01e98533870f2f3e85ac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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