A Pen by Tudor Tacal on CodePen.
Created
April 2, 2019 07:25
-
-
Save TudorTacal/25e018a2c82990e21f74d5c7bc7323ab to your computer and use it in GitHub Desktop.
QPbwXE
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
<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> |
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
.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