Team:DTU-Denmark-2/Header
From 2011.igem.org
(Difference between revisions)
Line 87: | Line 87: | ||
} | } | ||
+ | img.bg { | ||
+ | /* Set rules to fill background */ | ||
+ | min-height: 100%; | ||
+ | min-width: 1024px; | ||
+ | |||
+ | /* Set up proportionate scaling */ | ||
+ | width: 100%; | ||
+ | height: auto; | ||
+ | |||
+ | /* Set up positioning */ | ||
+ | position: fixed; | ||
+ | top: 0; | ||
+ | left: 0; | ||
+ | } | ||
+ | |||
+ | @media screen and (max-width: 1024px) { /* Specific to this particular image */ | ||
+ | img.bg { | ||
+ | left: 50%; | ||
+ | margin-left: -512px; /* 50% */ | ||
+ | } | ||
+ | } | ||
body { | body { | ||
background: url(https://static.igem.org/mediawiki/2011/6/67/Puzzle_background_fallingtest.png) no-repeat ; | background: url(https://static.igem.org/mediawiki/2011/6/67/Puzzle_background_fallingtest.png) no-repeat ; |
Revision as of 14:16, 2 September 2011