Line 1: | Line 1: | ||
{{SIAT-SCIE}} | {{SIAT-SCIE}} | ||
<html> | <html> | ||
+ | <style> | ||
+ | body { /*About the freeze part in the whole, backgroun color*/ | ||
+ | width: 1250px; | ||
+ | margin-left: auto; | ||
+ | margin-right: auto; | ||
+ | background-color: #f9f9f9; | ||
+ | } | ||
− | |||
− | |||
− | |||
− | |||
− | + | /*Logo picture as a whole, use to eliminate margin*/ | |
+ | #logo p { | ||
+ | margin: 0px; | ||
+ | } | ||
− | + | /*basically same with the top, but use div id=logo, let it float right, margin on right and top*/ | |
− | + | #logo { | |
− | + | float: right; | |
− | + | margin-right: 10px; | |
+ | margin-top: 18px; | ||
+ | background-color: #f9f9f9; | ||
+ | } | ||
− | + | /*this is about div id=comic: take the top banner as a whole to eliminate the margin*/ | |
+ | #comic { | ||
+ | margin: 0px; | ||
+ | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | /* Actually this make the navigation bar bigger and better*/ | |
− | + | #nav { | |
− | + | margin: 0 0 0 0; | |
− | + | padding: 10px; | |
− | + | } | |
− | + | ||
− | + | ||
− | + | /*place the first line 'inline', and the interval to be 20px*/ | |
− | + | #nav ul li { | |
− | + | display: inline; | |
+ | margin: 0 10px 0 10px; | ||
+ | } | ||
− | |||
+ | /*just to eliminate any margin */ | ||
+ | #basic_discription { | ||
+ | margin: 0 0 0 0; | ||
+ | } | ||
+ | /*also eliminate any margin*/ | ||
+ | #basic_discription p { | ||
+ | margin: 0px; | ||
+ | } | ||
− | + | /*put footer in the center!*/ | |
− | + | #footer { | |
− | + | text-align: center; | |
− | + | } | |
− | + | #nav { | |
+ | background-color: #333; | ||
+ | } | ||
+ | ul { | ||
+ | list-style-type: none; | ||
+ | margin: 0; | ||
+ | padding: 0; | ||
+ | overflow: hidden; | ||
+ | background-color: #333; | ||
+ | } | ||
− | + | li { | |
− | + | float: left; | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
+ | li a, .dropbtn { | ||
+ | display: inline-block; | ||
+ | color: white; | ||
+ | text-align: center; | ||
+ | padding: 14px 16px; | ||
+ | text-decoration: none; | ||
+ | } | ||
+ | li a:hover, .dropdown:hover .dropbtn { | ||
+ | background-color: red; | ||
+ | } | ||
+ | li.dropdown { | ||
+ | display: inline-block; | ||
+ | } | ||
+ | .dropdown-content { | ||
+ | display: none; | ||
+ | position: absolute; | ||
+ | background-color: #f9f9f9; | ||
+ | min-width: 160px; | ||
+ | box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); | ||
+ | z-index: 1; | ||
+ | } | ||
+ | .dropdown-content a { | ||
+ | color: black; | ||
+ | padding: 12px 16px; | ||
+ | text-decoration: none; | ||
+ | display: block; | ||
+ | text-align: left; | ||
+ | } | ||
+ | .dropdown-content a:hover { | ||
+ | background-color: #f1f1f1 | ||
+ | } | ||
+ | .dropdown:hover .dropdown-content { | ||
+ | display: block; | ||
+ | } | ||
+ | </style> | ||
+ | |||
+ | <div class="const"> | ||
+ | <div id="nav"> | ||
+ | <ul> | ||
+ | <li class="dropdown"> | ||
+ | <a href="javascript:void(0)" class="dropbtn">Project</a> | ||
+ | |||
+ | <div class="dropdown-content"> | ||
+ | <a href="#" alt="Project discription">Project discription</a> | ||
+ | <a href="#" alt="Results">Results</a> | ||
+ | <a href="#" alt="Proof">Proof</a> | ||
+ | <a href="#" alt="Parts">Parts</a> | ||
+ | </div> | ||
+ | |||
+ | </li> | ||
+ | <li class="dropdown"> | ||
+ | |||
+ | <a href="javascript:void(0)" class="dropbtn">Notebook</a> | ||
+ | <div class="dropdown-content" > | ||
+ | <a href="#" alt="IGEM Diary">IGEM Diary</a> | ||
+ | <a href="#" alt="Lab Book">Lab Book</a> | ||
+ | <a href="#" alt="Safety">Safety</a> | ||
+ | <a href="#" alt="Protocol">Protocol</a> | ||
+ | </div> | ||
+ | |||
+ | </li> | ||
+ | <li><a href="#" title="Parts">Parts</a></li> | ||
+ | <li><a href="#" title="Human practice">Human practice</a></li> | ||
+ | <li><a href="#" title="Awards">Awards</a></li> | ||
+ | <li><a href="#" title="Team">Team</a></li> | ||
+ | </ul> | ||
+ | </div> | ||
+ | </div> | ||
+ | <div id="comics"> | ||
+ | <img src="image/titlecomic.jpg" alt="team_logo" /> | ||
+ | <!--also not sure if the image should be the back ground or the seperate one--> | ||
+ | </div> | ||
+ | <div id="basic_discription"> | ||
+ | <p> | ||
+ | <img src="image/discription.png" alt="discription" /> | ||
+ | </p> | ||
+ | </div> | ||
+ | <div id="footer"> | ||
+ | <p>@2017 IGEM SIAT-SCIE All right reserved</p> | ||
+ | <p>Our Wechat Official Accounts: SIATxSCIE</p> | ||
+ | </div> | ||
</html> | </html> |
Revision as of 09:09, 21 June 2017