Line 11: | Line 11: | ||
min-width: 100%; | min-width: 100%; | ||
+ | /* The image used */ | ||
+ | background-image: url("https://static.igem.org/mediawiki/2017/d/d1/Harvard--BannerLow.jpeg"); | ||
+ | |||
+ | |||
+ | /* Set a specific height */ | ||
+ | min-width: 100%; | ||
min-height: 50%; | min-height: 50%; | ||
height: 500px; | height: 500px; | ||
− | width: 100%; | + | width: 100%; |
+ | |||
+ | |||
− | + | /* Create the parallax scrolling effect */ | |
− | + | background-attachment: fixed; | |
− | + | background-position: center; | |
− | + | background-repeat: no-repeat; | |
− | + | background-size: cover; | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
Revision as of 01:57, 30 October 2017