CSS Battle #82 – Diamond Cut #1152
meg-gutshall
started this conversation in
CSS Battles
Replies: 2 comments
-
Code Source – 601.68 {574}<z><r></r><x></x></z>
<style>
body {
display: grid;
place-items: center;
background: #F3AC3C;
}
z {
box-sizing: border-box;
width: 100px;
height: 100px;
background: #F3AC3C;
outline: 30px #998235 solid;
rotate: 45deg;
translate: -2px;
}
r {
position: absolute;
background: transparent;
border: 30px #F3AC3C solid;
width: 100px;
height: 100px;
translate: -95px -95px;
}
x {
position: absolute;
height: 30px;
width: 30px;
translate: 35px 35px;
background: #1A4341;
}
</style> |
Beta Was this translation helpful? Give feedback.
0 replies
-
First Attempt – 606.33 {435}<x bg></x>
<x by></x>
<x dot></x>
<style>
body {
display: grid;
place-items: center;
background: #F3AC3C;
}
x {
position: relative;
width: 100;
height: 100;
rotate: 45deg;
left: -2;
}
[bg] {
border: 30px solid #998235;
top: 62;
}
[by] {
border: 30px solid #F3AC3C;
top: -190;
}
[dot] {
width: 30;
height: 30;
background: #1A4341;
top: -193;
}
</style>A different method – 606.33 {435}
<x bg></x>
<x by></x>
<x dot></x>
<style>
body {
display: grid;
place-items: center;
background: #F3AC3C;
}
x {
box-sizing: border-box;
position: relative;
width: 160;
height: 160;
rotate: 45deg;
left: -2;
}
[bg] {
border: 30px solid #998235;
top: 63;
}
[by] {
border: 30px solid #F3AC3C;
top: -190;
}
[dot] {
width: 30;
height: 30;
background: #1A4341;
top: -193;
}
</style> |
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
Uh oh!
There was an error while loading. Please reload this page.
-
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 {characters}
Beta Was this translation helpful? Give feedback.
All reactions