Last active
July 22, 2022 15:32
-
-
Save metodiew/42be40a2902e4d174628d6fa37e95ae1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
https://cssbattle.dev/play/109 | |
<div class="a"> | |
<div class="b"></div> | |
<div class="b"></div> | |
<div class="b"></div> | |
<div class="b"></div> | |
</div> | |
<div class="a"> | |
<div class="b"></div> | |
<div class="b"></div> | |
<div class="b"></div> | |
</div> | |
<div class="a"> | |
<div class="b"></div> | |
<div class="b"></div> | |
</div> | |
<div class="a"> | |
<div class="b"></div> | |
</div> | |
<style> | |
* { | |
margin: 0; | |
background: #191919; | |
} | |
.a { | |
display: flex; | |
} | |
.b { | |
margin: 20px 0 0 20px; | |
width: 40; | |
height: 40; | |
border-radius: 50%; | |
background: #F6E59C; | |
} | |
</style> | |
########## | |
Optimized version | |
<div a><div b></div><div b></div><div b></div><div b></div></div><div a><div b></div><div b></div><div b></div></div><div a><div b></div><div b></div></div><div a><div b></div></div><style>*{margin:0;background:#191919;}[a]{display:flex;}[b] {margin:20px 0 0 20px;width:40;height:40;border-radius:50%;background:#F6E59C;}</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment