Difference between revisions of "Template:IIT-Madras/CSS"

Line 121: Line 121:
 
}
 
}
 
</style>
 
</style>
 +
 +
<script type="text/javascript">
 +
function gid(a){
 +
return document.getElementById(a);
 +
}
 +
function setup(){
 +
gid('welcome').style.paddingTop = gid('header').offsetHeight + 'px';
 +
}
 +
function putmenu(){
 +
gid('menu').style.display = 'block';
 +
gid('lines').style.display = 'none';
 +
gid('cross').style.display = 'inline-block';
 +
}
 +
function cutmenu(){
 +
gid('menu').style.display = 'none';
 +
gid('lines').style.display = 'inline-block';
 +
gid('cross').style.display = 'none';
 +
}
 +
</script>
  
 
     <div id="header" style="display: block; width: 100%; text-align: left; background: #050505; position: fixed; top: 0px; padding-top: 15px; box-shadow: 0px 2px 4px rgba(5,5,5,0.5); z-index: 20;">
 
     <div id="header" style="display: block; width: 100%; text-align: left; background: #050505; position: fixed; top: 0px; padding-top: 15px; box-shadow: 0px 2px 4px rgba(5,5,5,0.5); z-index: 20;">

Revision as of 13:52, 4 October 2016