Line 76: | Line 76: | ||
background-repeat: no-repeat; | background-repeat: no-repeat; | ||
background-size: cover; | background-size: cover; | ||
+ | } | ||
+ | |||
+ | @media only screen and {max-width: 680px) { | ||
+ | .parallax { | ||
+ | /* The image used */ | ||
+ | background-image: url(https://static.igem.org/mediawiki/2016/3/3c/T--Northwestern--header_small_image.png); | ||
+ | /* Set a specific height */ | ||
+ | height: 620px; | ||
+ | /* Create the parallax scrolling effect */ | ||
+ | background-attachment: fixed; | ||
+ | background-position: center; | ||
+ | background-repeat: no-repeat; | ||
+ | background-size: cover; | ||
+ | } | ||
} | } | ||
</style> | </style> |
Revision as of 01:19, 10 October 2016