CSS Battle #40 – Letter B #837
nickytonline
started this conversation in
CSS Battles
Replies: 2 comments
-
Something with a linear-gradient 😉<div></div>
<style>
body {
background: #6592CF;
display: grid;
place-items: center;
}
div {
width: 200px;
height: 200px;
}
div::after,div::before {
position: absolute;
content: '';
height: 100px;
width: 100px;
}
div::before {
border: 50px solid #243D83;
border-radius: 0 100px 100px 100px;
}
div::after {
background: linear-gradient(to right, #243D83 50px, #6592CF 0 100px, #243D83 50px);
}
</style> |
Beta Was this translation helpful? Give feedback.
0 replies
-
First pass! 690.43 (156 chars) Unminified:```html<style> *{ background:#6592CF; color:#243D83; } body{ border:50px solid; border-radius:40vw; margin:50 100; } p{ margin:-50; height:100; width:50; border-left:50px solid; } </style> ``` Minified:```html<style>*{background:#6592CF;color:#243D83}body{border:50px solid;border-radius:40vw;margin:50 100}p{margin:-50;height:100;width:50;border-left:50px solid ``` |
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}
Nick's solution
Beta Was this translation helpful? Give feedback.
All reactions