Team:UCLA/Template/CSS test
From 2014.igem.org
(Difference between revisions)
Samichaels (Talk | contribs) |
Samichaels (Talk | contribs) |
||
Line 250: | Line 250: | ||
position:relative; | position:relative; | ||
} | } | ||
+ | |||
+ | <!--SIDE MENU BAR--> | ||
+ | <style type="text/css"> | ||
+ | #side_menu{ | ||
+ | position:fixed; | ||
+ | background-color:#550000; | ||
+ | left:-110px; | ||
+ | width:30px; | ||
+ | height:500px; | ||
+ | padding: 10px 40px; | ||
+ | border: 2px solid #D46A6A; | ||
+ | /*border-radius: 25px;*/ | ||
+ | margin-bottom: 20px; | ||
+ | margin-top: 20px; | ||
+ | top:10%; | ||
+ | z-index:95; | ||
+ | } | ||
+ | #side_menu h3{ | ||
+ | text-align:center; | ||
+ | font-family:Verdana; | ||
+ | } | ||
+ | </style> | ||
+ | |||
+ | |||
<!--TOP MENU BAR--> | <!--TOP MENU BAR--> | ||
+ | <style type="text/css"> | ||
+ | #top_menu{ | ||
+ | position:fixed; | ||
+ | padding: 12px 0 0 0; | ||
+ | width:100%; | ||
+ | left:0; | ||
+ | top:0; | ||
+ | background:#550D00; | ||
+ | z-index:100; | ||
+ | } | ||
#menu li{ | #menu li{ | ||
- | position:relative; | + | position:relative; |
- | float:left; | + | float:left; |
- | list-style:none; | + | list-style:none; |
} | } | ||
#menu a{ | #menu a{ | ||
- | color:white; | + | color:white; |
- | + | padding:18px 0 15px 0; | |
- | padding: | + | text-decoration:none; |
- | text-decoration:none; | + | width:98px; |
- | width:98px; | + | display:block; |
- | display:block; | + | text-align:center; |
- | text-align:center; | + | font-family:arial; |
- | font-family:arial; | + | font-size:14px; |
- | font-size:14px; | + | border-bottom:thin solid #FFB7AA; |
} | } | ||
#menu{ | #menu{ | ||
- | margin-left:auto; | + | margin-left:auto; |
- | margin-right:auto; | + | margin-right:auto; |
- | width:900px; | + | width:900px; |
} | } | ||
#menu a:hover{ | #menu a:hover{ | ||
- | background: | + | background:#AA4B39; |
} | } | ||
- | |||
#menu li ul{ | #menu li ul{ | ||
- | + | background:#550D00; | |
/* display:none; */ | /* display:none; */ | ||
position:absolute; | position:absolute; | ||
text-align:center; | text-align:center; | ||
- | top: | + | top:50px; |
right:0px; | right:0px; | ||
} | } | ||
Line 291: | Line 324: | ||
position:relative; | position:relative; | ||
} | } | ||
+ | </style> | ||
<!--SIDE SPIDER ANIMATION--> | <!--SIDE SPIDER ANIMATION--> | ||
Line 332: | Line 366: | ||
- | <!-- | + | <!--SPIDER TOP BUTTON--> |
- | + | <style type="text/css"> | |
+ | .spiderbutton{ | ||
position: fixed; | position: fixed; | ||
- | + | top: 550px; | |
- | + | left: 1200px; | |
- | + | z-index: 0; | |
- | + | ||
} | } | ||
- | + | .spiderline{ | |
- | . | + | position: fixed; |
- | + | left:896px; | |
- | + | top: -95px; | |
- | + | z-index: -1; | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
} | } | ||
- | + | .spiderweb{ | |
- | . | + | position: fixed; |
- | + | right: 0px; | |
- | + | top: 0px; | |
- | + | z-index:1; | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
} | } | ||
</style> | </style> |
Revision as of 22:06, 15 September 2014
#spider { position:relative; //or whatever you need display:block; top:0px; left:500px; } #spider img { position:absolute; opacity:0; } #spider #first { opacity:1; } .slider{ width:800px; height:350px; overflow:hidden; margin:0px auto; background-image:url(loader.gif); background-repeat:no-repeat; background-position:center; } .shadow{ background-image:url(slider-shadow.jpg); background-repeat:no-repeat; background-position:top; width:864px; height:144px; margin:0px auto; } .slider img{ width:800px; height:350px; display:none; }