Template:Cornell Style
From 2012.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
<html> | <html> | ||
<head> | <head> | ||
- | <title>Team:Cornell - Style Template</title> | + | <title>Team:Cornell - Experimental Style Template</title> |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
<style type="text/css"> | <style type="text/css"> | ||
+ | /*============the following section is for making collapsible text============*/ | ||
.layer1 { | .layer1 { | ||
margin: 0; | margin: 0; | ||
padding: 0; | padding: 0; | ||
- | width: | + | width: 500px; |
} | } | ||
Line 29: | Line 17: | ||
color: #fff; | color: #fff; | ||
padding: 3px 10px; | padding: 3px 10px; | ||
- | |||
- | |||
cursor: pointer; | cursor: pointer; | ||
position: relative; | position: relative; | ||
- | background-color:# | + | background-color:#c30; |
} | } | ||
.content { | .content { | ||
Line 40: | Line 26: | ||
} | } | ||
p { padding: 5px 0; } | p { padding: 5px 0; } | ||
+ | |||
+ | |||
+ | |||
+ | |||
Line 248: | Line 238: | ||
/*=============End top nav bar code=================*/ | /*=============End top nav bar code=================*/ | ||
</style> | </style> | ||
+ | |||
+ | |||
+ | <script type="text/javascript"> | ||
+ | jQuery(document).ready(function() { | ||
+ | jQuery(".content").hide(); | ||
+ | //toggle the componenet with class msg_body | ||
+ | jQuery(".heading").click(function() | ||
+ | { | ||
+ | jQuery(this).next(".content").slideToggle(500); | ||
+ | }); | ||
+ | }); | ||
+ | </script> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
Revision as of 21:49, 18 August 2012