Template:Cornell Style Experimental
From 2012.igem.org
(Difference between revisions)
(Created page with "<html> <head> <title>Team:Cornell - Experimental Style Template</title> - →Based on Minnesota - Main Style Template: <style type="text/css"> /*============the following section ...") |
|||
(18 intermediate revisions not shown) | |||
Line 2: | Line 2: | ||
<head> | <head> | ||
<title>Team:Cornell - Experimental 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 { | ||
+ | margin: 0; | ||
+ | padding: 0; | ||
+ | width: 700px; | ||
+ | } | ||
+ | |||
+ | .heading { | ||
+ | margin: 1px; | ||
+ | color: #fff; | ||
+ | padding: 3px 10px; | ||
+ | cursor: pointer; | ||
+ | position: relative; | ||
+ | background-color:black; | ||
+ | text-align:center; | ||
+ | } | ||
+ | .heading1 { | ||
+ | margin: 1px; | ||
+ | color: #fff; | ||
+ | padding: 3px 10px; | ||
+ | cursor: pointer; | ||
+ | position: relative; | ||
+ | background-color:#8e0023; | ||
+ | text-align:center; | ||
+ | } | ||
+ | .content { | ||
+ | padding: 5px 10px; | ||
+ | background-color:#cfcfcf; | ||
+ | } | ||
+ | p { padding: 5px 0; } | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
/*============the following section is hacking the original wiki template============*/ | /*============the following section is hacking the original wiki template============*/ | ||
Line 84: | Line 122: | ||
position:relative; | position:relative; | ||
padding-top:100px; | padding-top:100px; | ||
- | + | color:transparent; | |
- | color: | + | font-size:16px; |
- | font-size: | + | |
padding:50px; | padding:50px; | ||
} | } | ||
Line 102: | Line 139: | ||
} | } | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | + | </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); | ||
+ | }); | ||
+ | jQuery(".heading1").click(function() | ||
+ | { | ||
+ | jQuery(this).next(".content").slideToggle(500); | ||
+ | }); | ||
+ | }); | ||
+ | </script> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
</head> | </head> | ||
<body> | <body> |
Latest revision as of 20:53, 19 August 2012