Created
July 30, 2017 05:08
-
-
Save rye761/295d1a5ab8d7c5172dc1e250901158f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>CSS Grid Video</title> | |
<meta charset="utf-8"> | |
<style> | |
.container { | |
width: 80%; | |
margin: 0 auto; | |
font-size: 0; | |
text-align: center; | |
} | |
.grid-item, .grid-item-large { | |
width: 200px; | |
height: 200px; | |
display: inline-block; | |
margin: 4px; | |
font-size: 1rem; | |
vertical-align: top; | |
} | |
.grid-item-large { | |
height: 300px; | |
} | |
.green { | |
background-color: darkgreen; | |
} | |
.red { | |
background-color: tomato; | |
} | |
.blue { | |
background-color: cornflowerblue; | |
} | |
.purple { | |
background-color: violet; | |
} | |
.orange { | |
background-color: orange; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="grid-item green"></div> | |
<div class="grid-item-large red"></div> | |
<div class="grid-item blue"></div> | |
<div class="grid-item-large green"></div> | |
<div class="grid-item red"></div> | |
<div class="grid-item orange"></div> | |
<div class="grid-item green"></div> | |
<div class="grid-item purple"></div> | |
<div class="grid-item green"></div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment