Created
October 7, 2021 15:56
-
-
Save smmoosavi/81c8eead3bf43b57bf38f33edf6ca0b7 to your computer and use it in GitHub Desktop.
cssbattle
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="grid g"></div> | |
<div class=""></div> | |
<style> | |
body { | |
background: #6592CF; | |
} | |
.grid { | |
position: absolute; | |
top: 0px; | |
left: 0px; | |
width: 400px; | |
height: 300px; | |
background-size: 20px 20px; | |
background-image: | |
linear-gradient(to right, white 1px, transparent 1px), | |
linear-gradient(to bottom, white 1px, transparent 1px); | |
} | |
.g1{background-size: 10px 10px;} | |
.g2{background-size: 25px 25px;} | |
.a { | |
position: absolute | |
} | |
.c { | |
transform: translate(-50%, -50%); | |
} | |
.cx { | |
transform: translateX(-50%); | |
} | |
.cy { | |
transform: translatey(-50%); | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment