Line 16: | Line 16: | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
− | /* Create three | + | /* Create three equal columns that floats next to each other */ |
.column { | .column { | ||
float: left; | float: left; | ||
− | padding: | + | width: 33.33%; |
− | height: | + | padding: 10px; |
− | + | height: 300px; /* Should be removed. Only for demonstration */ | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
Line 34: | Line 29: | ||
display: table; | display: table; | ||
clear: both; | clear: both; | ||
+ | } | ||
+ | |||
+ | /* Responsive layout - makes the three columns stack on top of each other instead of next to each other */ | ||
+ | @media screen and (max-width: 600px) { | ||
+ | .column { | ||
+ | width: 100%; | ||
+ | } | ||
} | } | ||
Line 251: | Line 253: | ||
</div> | </div> | ||
− | + | <p>Resize the browser window to see the responsive effect (the columns will stack on top of each other instead of floating next to each other, when the screen is less than 600px wide).</p> | |
<div class="row"> | <div class="row"> | ||
− | <div class="column | + | <div class="column " style="background-color:#4f0505;"> |
<h2>Brief Introduction</h2> | <h2>Brief Introduction</h2> | ||
<video playinline muted id="vid" autoplay loop="loop"> | <video playinline muted id="vid" autoplay loop="loop"> | ||
Line 259: | Line 261: | ||
</video> | </video> | ||
</div> | </div> | ||
− | <div class="column | + | <div class="column " style="background-color:#4f0505;"> |
<h2>Column 2</h2> | <h2>Column 2</h2> | ||
<video playinline muted id="vid" autoplay loop="loop"> | <video playinline muted id="vid" autoplay loop="loop"> |
Revision as of 03:12, 12 October 2018
≈
Syringe
GFP System
Mosquito Immune Signaling
AMP System
Resize the browser window to see the responsive effect (the columns will stack on top of each other instead of floating next to each other, when the screen is less than 600px wide).