MediaWiki:Common.css: Difference between revisions
Fix content overlapping header by making page-base static, and remove mountain background from content box |
Shift content up to perfectly latch onto the navigation menu |
||
| Line 674: | Line 674: | ||
background-image: none !important; | background-image: none !important; | ||
background-color: #f1e7d3 !important; | background-color: #f1e7d3 !important; | ||
} | |||
/* --- 21. Pixel-Perfect Content Latch --- */ | |||
/* Make the header banner absolute again so it doesn't push the content down 180px */ | |||
#mw-page-base { | |||
position: absolute !important; | |||
} | |||
/* Explicitly push the content down by EXACTLY the distance of the tabs (15px top + 46px bar = 61px) | |||
so it latches perfectly onto the bottom of the navigation menu! */ | |||
#content { | |||
margin-top: 61px !important; | |||
position: relative; | |||
z-index: 1; /* Sit under the tabs which are z-index 2 */ | |||
} | } | ||