Difference between revisions of "Code Documentation"

Line 41: Line 41:
  
  
 +
<h3>Buttons </h3>
  
 +
<h4> CSS button</h4>
  
 +
<p> /* Button class*/ </p>
  
 +
        <p>.button { <br>
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; width: 130px; <br>
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; border: 1px solid #cccccc; <br>
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; background-color: fff; <br>
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; height: 30px; <br>
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; text-align: center; <br>
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; border-radius: 5px; <br>
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; padding: 10px 5px 0px 5px; <br>
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; margin: auto; <br>
 +
    }       
 +
</p>
 +
<p>
 +
    .button:hover { <br>
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; background-color: #c1dfa6;
 +
    }
 +
</p>
 +
<h4> Creating a button </h4>
 
<!-- end of content ---------------------------------------->
 
<!-- end of content ---------------------------------------->
 
</div>
 
</div>

Revision as of 19:05, 30 January 2015

CSS and HTML used in iGEM 2015

This page documents and explains the CSS and HTML used in the 2015 site.

General wrapping div of the page

/* General wrap for the page*/

#contentWrap {
      width: 980px;
      height: auto;
      margin-left: 20px;
      float:left;
      margin-right: auto;
      background-color: #ffffff;
}

Buttons

CSS button

/* Button class*/

.button {
      width: 130px;
      border: 1px solid #cccccc;
      background-color: fff;
      height: 30px;
      text-align: center;
      border-radius: 5px;
      padding: 10px 5px 0px 5px;
      margin: auto;
}

.button:hover {
      background-color: #c1dfa6; }

Creating a button