Template:Team:Cambridge/CAM 2012 TEMPLATE HEAD PROJECT1
From 2012.igem.org
(Difference between revisions)
Pdmallaband (Talk | contribs) |
Pdmallaband (Talk | contribs) |
||
(6 intermediate revisions not shown) | |||
Line 54: | Line 54: | ||
p:first-child { display: none;} | p:first-child { display: none;} | ||
/* Wiki Hacks - END */ | /* Wiki Hacks - END */ | ||
+ | |||
+ | /* required to avoid jumping */ | ||
+ | #camLeftWrapper { | ||
+ | left: 20px; | ||
+ | position: absolute; | ||
+ | margin-left: 35px; | ||
+ | width: 200px; | ||
+ | } | ||
+ | |||
+ | #cam_left { | ||
+ | position: absolute; | ||
+ | top: 0; | ||
+ | /* just used to show how to include the margin in the effect */ | ||
+ | margin-top: 0px; | ||
+ | border-top: 1px solid purple; | ||
+ | padding-top: 19px; | ||
+ | } | ||
+ | |||
+ | #cam_left.fixed { | ||
+ | position: fixed; | ||
+ | top: 0; | ||
+ | } | ||
+ | |||
+ | |||
</style> | </style> | ||
Line 161: | Line 185: | ||
<div id='cam_page'> | <div id='cam_page'> | ||
+ | <div id = 'camLeftWrapper'> | ||
<div id='cam_left'> | <div id='cam_left'> | ||
<a href='https://2012.igem.org/Team:Cambridge' title='Team:Cambridge'> | <a href='https://2012.igem.org/Team:Cambridge' title='Team:Cambridge'> | ||
Line 259: | Line 284: | ||
</div> | </div> | ||
</div> | </div> | ||
+ | </div> | ||
+ | |||
</div> | </div> | ||
Latest revision as of 15:26, 20 September 2012