Template:Team:Edinburgh/css/header-structure.css
From 2012.igem.org
(Difference between revisions)
m (Tweaking main-menu's size) |
(Adding an img bg in the header) |
||
Line 1: | Line 1: | ||
<html> | <html> | ||
<style type="text/css"> | <style type="text/css"> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
/* wiki edit */ | /* wiki edit */ | ||
#top-section{ | #top-section{ | ||
Line 19: | Line 9: | ||
left:0; top:0; | left:0; top:0; | ||
} | } | ||
- | .editsection, #top-section #p-logo, #top-section #search-controls, | + | .editsection, |
- | #content h1.firstHeading, #content #bodyContent #contentSub, | + | #top-section #p-logo, |
- | /*#content #bodyContent p,*/ #catlinks{ | + | #top-section #search-controls, |
+ | #content h1.firstHeading, | ||
+ | #content #bodyContent #contentSub, | ||
+ | /*#content #bodyContent p,*/ | ||
+ | #catlinks{ | ||
display: none; | display: none; | ||
} | } | ||
- | |||
- | |||
- | |||
- | |||
#content{ | #content{ | ||
border:0; | border:0; | ||
padding:0; | padding:0; | ||
- | width:100% | + | width:100%; |
margin: 0 auto 0 auto; | margin: 0 auto 0 auto; | ||
} | } | ||
- | #top-section #menubar.left-menu, #top-section #menubar.right-menu{ | + | #top-section #menubar.left-menu, |
+ | #top-section #menubar.right-menu{ | ||
position: absolute; | position: absolute; | ||
top: 0; | top: 0; | ||
Line 46: | Line 37: | ||
margin-right: auto; | margin-right: auto; | ||
} | } | ||
- | /* | + | /* header */ |
- | div | + | html, body, div, ul, li, p, img{ |
+ | margin: 0; | ||
+ | padding: 0; | ||
+ | outline: 0; | ||
+ | border: none; | ||
+ | } | ||
+ | ul{ | ||
+ | list-style:none; | ||
+ | } | ||
+ | #header{ | ||
height:158px; | height:158px; | ||
width:100%; | width:100%; | ||
- | |||
border-bottom: 2px solid #182e46; | border-bottom: 2px solid #182e46; | ||
} | } | ||
- | + | #banner{ | |
width:975px; | width:975px; | ||
margin-left: auto; | margin-left: auto; | ||
- | margin-right:auto; | + | margin-right: auto; |
height:120px; | height:120px; | ||
- | |||
} | } | ||
- | + | #team-name{ | |
width:40%; | width:40%; | ||
height:100%; | height:100%; | ||
float:left; | float:left; | ||
} | } | ||
- | + | #team-name p{ | |
padding: 50px 0 0 0; | padding: 50px 0 0 0; | ||
} | } | ||
- | + | #logo{ | |
float:left; | float:left; | ||
width:20%; | width:20%; | ||
height:100%; | height:100%; | ||
} | } | ||
- | + | #logo img{ | |
position:relative; | position:relative; | ||
top:10%; | top:10%; | ||
Line 79: | Line 77: | ||
height:80%; | height:80%; | ||
} | } | ||
- | + | #follow{ | |
float:left; | float:left; | ||
width:40%; | width:40%; | ||
height:100%; | height:100%; | ||
} | } | ||
- | + | #follow ul{ | |
margin-top:50px; | margin-top:50px; | ||
margin-left:30px; | margin-left:30px; | ||
} | } | ||
- | + | #follow li{ | |
display:inline; | display:inline; | ||
padding-left:30px; | padding-left:30px; | ||
float:right; | float:right; | ||
} | } | ||
- | + | #follow img{ | |
height:30px; | height:30px; | ||
} | } | ||
- | + | #main-menu{ | |
width:975px; | width:975px; | ||
margin-left: auto; | margin-left: auto; | ||
Line 103: | Line 101: | ||
text-align:center; | text-align:center; | ||
} | } | ||
- | + | #main-menu ul{ | |
- | height:100%; | + | height:100%; |
- | + | ||
} | } | ||
- | + | #main-menu li{ | |
float:left; | float:left; | ||
width:108px; | width:108px; | ||
height:100%; | height:100%; | ||
} | } | ||
- | + | #main-menu li:last-child{ | |
width:111px; | width:111px; | ||
} | } | ||
- | + | #main-menu li a{ | |
display: block; | display: block; | ||
height:100%; | height:100%; | ||
width:100%; | width:100%; | ||
} | } | ||
- | + | #main-menu li a p{ | |
position:relative; | position:relative; | ||
top:6px; | top:6px; |
Revision as of 19:37, 1 July 2012