Team:SYSU-China/css/common.css

From 2014.igem.org

(Difference between revisions)
(Created page with ".ch-grid { margin: -150px 0 0 0; padding: 0; list-style: none; display: block; text-align: center; width: 100%; } .ch-grid:after, .ch-item:before { content: ''; displ...")
Line 1: Line 1:
.ch-grid {
.ch-grid {
-
margin: -150px 0 0 0;
+
margin: 150px 0 0 0;
padding: 0;
padding: 0;
list-style: none;
list-style: none;
Line 19: Line 19:
.ch-grid li {
.ch-grid li {
-
width: 180px;
+
width: 170px;
-
height: 180px;
+
height: 170px;
display: inline-block;
display: inline-block;
-
margin: 20px;
+
position: absolute;
 +
left: 50%;
 +
bottom: 0px;
}
}

Revision as of 06:09, 10 October 2014

.ch-grid { margin: 150px 0 0 0; padding: 0; list-style: none; display: block; text-align: center; width: 100%; }

.ch-grid:after, .ch-item:before { content: ;

   display: table;

}

.ch-grid:after { clear: both; }

.ch-grid li { width: 170px; height: 170px; display: inline-block; position: absolute; left: 50%; bottom: 0px; }