CSS Battle #88 – Tight Corner #1211
Replies: 4 comments
-
Code Source – 603.01 {513}<div></div>
<div b></div>
<style>
&{background:#D25B70}
div {
position:fixed;
inset: 0 0 calc(50% + 20px);
background:#F7F3DA;
}
div:before,div:after {
content:'';
position:absolute;
width:50%;
height:40px;
}
div:before{
bottom:-20;
border-radius:0 10px;
background:#D25B70;
}
div:after{
bottom:-20;
right:0;
border-radius:0 0 0 20px;
background:#F7F3DA;
}
[b]{
transform-origin:50% calc(100% + 20px);
rotate:180deg;
}
</style> |
Beta Was this translation helpful? Give feedback.
-
Based on @surajb0710's idea: Code Source – 611.65 {371}<div></div>
<div b></div>
<style>
&{background:#F7F3DA}
div {
position:fixed;
inset: 110px 50% 0 0;
border-radius: 0 10px;
background:#D25B70;
}
div:before {
content:'';
position:absolute;
inset:40px 0 -20px 0;
border-radius:0 20px;
background:#F7F3DA;
}
[b]{
transform-origin:100% 40px;
rotate:180deg;
}
</style> |
Beta Was this translation helpful? Give feedback.
-
First attempt based on @surajb0710's idea – 605.76 {445}<div u>
<div o></div>
</div>
<div u r>
<div o></div>
</div>
<style>
* {
background: #F7F3DA;
margin: 0;
}
div {
position: fixed;
bottom: 0;
}
[o] {
width: 200;
height: 150;
background: #F7F3DA;
border-radius: 0 20px 0 0;
}
[u] {
width: 200;
height: 190;
background: #D25B70;
border-radius: 0 10px 0 0;
}
[r] {
transform-origin: 100% 21%;
rotate: 180deg;
}
</style> |
Beta Was this translation helpful? Give feedback.
-
Code Source – 601.07{622}` body{ .clsE{ .clsA, .clsC{ .clsB, .clsD{ .clsA, .clsB{ .clsC, .clsD{ .clsA{ .clsC{ .clsB{ .clsD{ |
Beta Was this translation helpful? Give feedback.
-
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