CSS Battle #18 – Matrix #949
aishwarya-mali
started this conversation in
CSS Battles
Replies: 2 comments
-
using grids – 614.93 {345}<p><p><p><p><p><p><p><p><p><p><p><p>
<style>
*{
margin:0;
padding:5;
background: #5C434C;
}
body{
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(3, 1fr);
gap:20px;
}
p{
width:70;
height:70;
border-top-left-radius:100px;
}
p:nth-child(even),p:nth-child(5),p:nth-child(7){
background:#F5D6B4;
}
p,p:nth-child(6),p:nth-child(8){
background:#F09462;
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Link to battle:
Let's battle! ⚔️
Copy the code block below to format your comment on the discussion thread:
What others will see:
This will result in a nice hidden bit like so:
Code Source – score {character count}
Beta Was this translation helpful? Give feedback.
All reactions