Created
November 17, 2013 20:19
-
-
Save imevro/7517780 to your computer and use it in GitHub Desktop.
Simple way to create stacked blocks with right :hover border
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
.blocks-stacked { | |
.block { | |
border: 1px solid #eee; | |
margin-left: 0; | |
margin-right: 0; | |
z-index: 1; | |
&:hover { | |
border-color: blue; | |
z-index: 2; | |
} | |
&.block + .block { | |
margin-left: -1px; | |
} | |
} | |
} | |
// I'm using Twitter Bootstrap and making columns with them |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://jsfiddle.net/S96yb/