Created
November 5, 2013 14:22
-
-
Save grahammills/7319723 to your computer and use it in GitHub Desktop.
Setting a height on responsive blocks
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
.block-type-one { | |
width: 100%; | |
padding-bottom: 66%; | |
background: #cccccc; | |
position: relative; | |
} | |
.block-type-inner { | |
position: absolute; | |
left: 10px; | |
right: 10px; | |
top: 10px; | |
bottom: 10px; | |
background: #66F; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment