Team:UCC Ireland/ourlab sub1.css
From 2014.igem.org
(Difference between revisions)
PXie (Talk | contribs)
(Created page with "@font-face { font-family: "My Custom Font"; src: url(http://www.google.com/fonts/#UsePlace:use/Collection:PT+Sans) format("truetype"); } @media screen and (max-width: 90...")
Newer edit →
(Created page with "@font-face { font-family: "My Custom Font"; src: url(http://www.google.com/fonts/#UsePlace:use/Collection:PT+Sans) format("truetype"); } @media screen and (max-width: 90...")
Newer edit →
Revision as of 21:14, 15 October 2014
@font-face {
font-family: "My Custom Font"; src: url(http://www.google.com/fonts/#UsePlace:use/Collection:PT+Sans) format("truetype");
}
@media screen and (max-width: 900px) {
h1 { font-size:20px; } h2 { font-size:16px; }
}
body {
margin:0px; padding:0px; font-family:Arial;
}
span.helper {
display: inline-block; height: 100%; vertical-align: middle;
}
- container {
position:fixed; width:100%; margin-top:50px; height:100vh; height: -webkit-calc(100vh - 30px); height: -moz-calc(100vh - 30px); height: calc(100vh - 30px); background-color:#222; min-width:700px;
}
- container >div:hover {
opacity:1;
}
- col1, #col2, #col3, #col4 {
width:21.875%; margin-left:2.5%; float:left; background-color:#555; position:relative; text-align: left; vertical-align:central;
height:90%; height: -webkit-calc(100vh - 60px); height: -moz-calc(100vh - 60px); height: calc(100vh - 60px);
margin-top:10px;
background-position: center;
background-size:cover; background-origin: border-box;
color:white;
opacity:0.9;
}
- col4 {
margin-right:2.5%;
}
h1 {
margin-left:30px; margin-right:10px; margin-top:40vh;
}
h2 {
margin-left:30px; margin-right:10px;
}
p {
margin-left:30px; margin-right:10px;
}