Skip to content

Instantly share code, notes, and snippets.

@TudorTacal
Created April 2, 2019 07:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TudorTacal/25e018a2c82990e21f74d5c7bc7323ab to your computer and use it in GitHub Desktop.
Save TudorTacal/25e018a2c82990e21f74d5c7bc7323ab to your computer and use it in GitHub Desktop.
QPbwXE
<div class="container">
<div class="item item--1">1: Orange</div>
<div class="item item--2">2: Green</div>
<div class="item item--3">3: Violet</div>
<div class="item item--4">4: Pink</div>
<div class="item item--5">5: Blue</div>
<div class="item item--6">6: Brown</div>
</div>
.container {
background-color: #eee;
width: 1000px;
margin: 30px auto;
display: grid;
grid-template-rows: 150px 150px;
grid-template-columns: 150px 150px 150px;
grid-gap: 30px;
}
.item {
padding: 20px;
font-size: 30px;
font-familty: sans-serif;
color: white;
&--1 {
background-color: orangered;
}
&--2 {
background-color: yellowgreen;
}
&--3 {
background-color: blueviolet;
}
&--4 {
background-color: palevioletred;
}
&--5 {
background-color: royalblue;
}
&--6 {
background-color: goldenrod;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment