Last active
August 29, 2015 14:28
-
-
Save davidrenne/c427cee31a4665089e7d to your computer and use it in GitHub Desktop.
MAGIC CSS CROP
This file contains hidden or 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
#sectionFeatures p img, #sectionDining p img { | |
width: 100%; | |
background-position: center; | |
background-size: cover; | |
} | |
#sectionDining p { | |
width: 306px; | |
height: 219px; | |
overflow: hidden; | |
display: flex; | |
} | |
#sectionFeatures p { | |
width: 480px; | |
height: 343px; | |
overflow: hidden; | |
display: flex; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
src attributes or alt tags cannot be used. You must use background-image: url('xxx') on each image in the p tag