Created
May 24, 2022 13:45
-
-
Save ocariocawebdesign/273cc9251c9480d37018673c97b1e6c4 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
<style> | |
.boxs { | |
display: grid; | |
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
gap: 20px; | |
} | |
#box-1 { | |
background: red; | |
} | |
#box-2 { | |
background: green; | |
} | |
#box-3 { | |
background: grey; | |
} | |
#box-4 { | |
background: #000; | |
} | |
</style> | |
<div class="boxs"> | |
<div id="box-1" class="box">Box 1</div> | |
<div id="box-2" class="box">Box 2</div> | |
<div id="box-3" class="box">Box 3</div> | |
<div id="box-4" class="box">Box 4</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment