Idk about everyone, but realizing this is crucial for some novice developers who keep beating themselves over nothing. It's okay to screw up and not have a clue about what to do. It's important not to lose confidence. The solution will be figured out eventually.
@@vaguebrownfox You are right. It's also important to understand that you'll never quit learning. In the beginning I thought: "First I gonna learn CSS and when that's finished, I'll start with Javascript." That epiphany quickly came to an end as I realized the dimensions of each language. So cross-platform-learning became a thing.
@@vaguebrownfox i wasted 6hours on making a navigationbar with "under-categories" Ended up not doing it cuz the tutorials i had were bad or not mobile-compitable AND IM STILL MOTIVATED
saaaaame ! had a css problem that messed me up , i solved it in a whole week lol had images that needed to be symmetrically displayed and equal in width and height and space between solved it finally with display grid-template-column(4,1fr)
I love seeing other devs go through the thought process in real time...thinking your on the right track and then the "Oh wait...this wont work, lets think about this..". The more scripted tutorials are always great but these videos are the inspiration to show that anyone can learn to dev with practice and many iterations. Great content!!
@@awekeningbro1207 Yes, its the official one. We started our channel recently and there is not much content. So building up slowly. Please do subscribe us for awesome stuff incoming :)
Just got into css battles because of these videos. Watching you guys sometimes was painful, when both of you were overcomplicating things because you did not see what I did. So naturally I had to try it myself. And now i'm hooked...
I have a snippet I call CSS Reset that I always import at the start of each project's CSS files. It resets things like these all the way to some other personal annoyances like text-decoration: underline.
What I like best about these battles is that-unlike scripted, pre-planned content-they show you that even the most seasoned developers don't just regurgitate code onto a screen having it come out perfectly the first time.
It's funny when you are able to do the work EASILY and then you see how the "professionals" struggle with it and just brute force it with specific pixel placements... Bruh. I tried the blue letter "b" thing. They could just use: body>div.outer-circle>div.inner-circle>div.inner-line body { //flex and center children with justify-content and align-items } .outer-circle { border-radius: 50%; border-top-left-radius: 0; display: flex; //justify and align on center } .circle-inner { //width and height to 50% (it's exactly half of the outer circle) position: relative; } .inner-line { transform-origin: bottom right; bottom: 50%; position: absolute; width: 50% //it's exactly half of the inner circle, hence it's its child height: 100%; //it has to cover exactly the height of the inner circle to cover the outer circle as well, and not go beyond necessary boundaries. I came up with this solution in my head in 10 seconds, coded it working in probably 5 minutes. And as a bonus it's adaptive for all screen resolutions. Kinda cringed at these "CSS King" nicknames. CSS is too easy to be a king on it, it has a very low skill ceiling, and even if you can't solve something on your own there are hundreds of ready solutions in the web waiting for your Google search. It's just matter of time and quality. And seeing his class naming conventions, his "workaround patch fix" solutions and so much time spent I don't see a king there. Anyway that's just my criticism of their skill and ONLY because of the "King of CSS" title which imo doesn't show in THIS particular battle.
@@theseangle there's just no way to believe you, if you make a video of yourself doing a challenge you've never done before while competiting against another person and still do it in 10 seconds then that's believable, not when you're not competiting against anyone and have all the time you need and there's no video filming
@@Tenchi707 well don't believe me, I don't care. Since then I have been working as a Frontend Developer and these challenges are pretty difficult, except for the ones that they chose for this video. Kevin Powell is indeed a TH-cam CSS king, just not as much in this specific video. There's also the factor of being able to touch type and do it fast, which will obviously increase your speed. Well I've got 90 WPM typing speed. Combine it with the first possible solution that came to my head and it takes less than 5 minutes in total for a challenge like the letter b. Just gotta think in markup
Me: He's CSS king, he must be crazy good at naming convention and writes a clean and organized understandable code. CSS kimg: 🌚 inner-inner-inner. Understandable have a good day.
5:33 you made me feel better about the times I write lines of code, it doesn't work how I expect it to, then I scrap the lot and start again. Glad to see it's not just me.
Not sure if anyone already said this in the comments, but thanks for being vulnerable by opening up like this! Time pressure makes a difference always. :)
Wow Kevin Powell is all instinct. So crazy he seemingly stumbles into the right solution but it's all his learned instinct. He definitely could've had the second one but was definitely flustered knowing he would be watched.
This was great watching how the two of you tackled achieving the same result using different techniques. So much value in this video. Thank you and please do more.
I thought I was the only one who struggle. After watching CSS king struggle, I feel like we are not too far from being on the same boat 😂. Thanks for the video guys.
I mean yeah that's true you don't get hired by drawing shapes with pure CSS but i think it's still really important to know those kind of things. Let's say you want to build a full website and you're styling with some CSS framework. You don't want your website to appear like some other default one but something unique and that's what CSS frameworks or libraries actually provide. They give you a foundation of styles and you are the one who needs to customise them. It's here where pure CSS actually help ans it's here where there is problems. You can ofc find a solution by bringing some other JS library and thus making your code not just horrible but also bloating your project with extra libraries and data which can result of a really bad user experience. But you may in this case use those CSS properties that you found useless to style the same way as another guy who bloated his website with useless libraries and trust me this makes a huge difference. Quite a long answer but just to tell you that pure CSS actually matters a lot and even those little CSS properties can make a difference.
I think you can use another way of doing this. You can include all of those divs in one div classed container. Then, if we make the body flex and do justify content to center, all of the elements would center. Then we can class all of the triangle divs and give them a z-index. Then, we can move the first and the last triangles up and down respectively. Then, we can add colours to them. This may sound too much but it takes around 6 minutes only.
27:30 - place-items should have had a colon instead of a semi-colon and it would've worked! I was screaming at the screen when I saw it as if I was the one competing, shows you even the best can succumb to these things under pressure :)
These are great to watch, and educational. I'm an ex-coder now project manager, and learning css just for fun is great. Tearing my hair out on the circle one - just use a border on the circle one, transparent one side and rotate!
My solution to Round 2: You create that small egg-yellow colored circle. Then you create a rectangle and put it above that small circle. Then you give that rectangle a repeating linear gradient with light yellow and dark green colors. Then you create another big circle. You give that big circle a thick dark green border, and a transparent fill and position it in the center so it covers the sides of rectangle making it look curvy.
20:26 yellow circle: use an outer div with centered items, a fixed height (small enough to cut off both Y ends of circle) and overflow hidden. darker yellow stays the same. just add the lines on top and youre fine
For the second round, I would have chosen a div (display: flex; and flex-direction: column) with 7 children, each odd child to have a different color (and flex: 1 to make them equal). To cut it into a circle I would have used clip-path: circle (); on the parent container. It would have been short and efficient. For the third round, it is worth using border-radius: 0 50% 50% 50%. The upper left corner would have remained unchanged and the others would have been rounded. However, the fact that you posted a video in which you did not do everything perfectly makes me glad that I have been watching you both for so long! Congratulations!
i havent use clip path before but i was thinking of same but would have make a transparent outer circle with overflow hidden ! thats what i think will work ! havent tried yet though
Linear-gradient backgrounds would have saved you a lot of time and extra divs on both the circle & lines exercise and the funky circle/line. I always struggle with triangles so thanks for the refresher. This is a fun challenge! I am going to have to go do some on my own. Keep killing it!
Kevin is one of my heroes. I haven't been able to code since losing my laptop but his lessons and the things he helped me learn when I was taking his courses are completely unmatched...look forward to learning from both of y'all again when I get my stuff back after about 4 months of no code
For round maybe it is possible to use "tape" divs in-on the circles. They could have the background color, relative to the circle height, always full width. yellow one : three tapes in middle. green one : one top one bottom. They would get clipped to the circle's boundary with overflow:hidden too.
2nd Challenge tip : Create a small circle green Create a second circle bigger than first with transparent background add 7 lines inside circle and overflow hidden , thats it 👍
Actually... round 2 at 14:15 you literally just need two more dark green div. Put it between the bigger and smaller circle z-index, so it only cover the bigger circle.
this video is AMAZING! it helps so much to see two different minds trying to each solve the challenge, for me it's just as educational to watch than it is fun. Thank You Guys!
20:41 , here's solution : 1. make a circle exactly same as yellow and same position. 2. make border same as size of lines. and adjust circle position. 3. make border top and bottom same as background color. other two will transparent. 4. make circle background transparent. 5. make those middle lines above them all ( z-index : 500; ) _________________________ Thanks for reading. 😇 Hva Great Day .
Nice video. Very fun to watch! It makes me want to do this challenge with my friends. for the last challenge, I will use the relative + absolute with percentage of the parent div to solve the problem. It can be used in every parts. circle outer - body relative circle absolute top-left-transform 50/50 circle inner - absolute on outer cricle top-left-transform 50/50 and 50% width of the outer square - absolute top-left 0 width 50% height 50% bg dark blue, the other half is :after absolute with square top-0 right-0 width 50% height 50% with more z-index light blue bg
Started CSS yesterday, and my approach to the third challenge was three squares of each 50% smaller than the last one, the first two give a border radius of 0% 50% 50% 50% and then offset the smallest to align with the edge created in the second smallest
For the Sunset challenge i found neat trick. I used just two circles, and lines. Green circle then has to have background with linear gradient where middle is transparent. Like this: background: linear-gradient(#998235 50px, transparent 50px, transparent 150px ,#998235 151px ); That assures, that middle of the circle is tranparent. You have to just set z-index for your lines and you are good to go.
Watching the CSS king struggle with round three which for me was pretty easy to recreate is sooooooooo satisfying. 😊 And I just learned CSS this week from his introductory Course on Scrimba.
For the three CSS creators, I would launch them the challenge to create a solid tutorial about **flex-shrink** which is not well explained nor in (simplest) W3Schools, not in (the advanced) MDN neither in expert world of StackOverflow. I consider it a very important thing for responsive design since smartphones were created except for grid and media queries maybe. If they cannot do it at highest level I would put myself to work to make it ;) Btw tell me if you find useful this small one here: font-size: minmax(calc(0.5em + 1vw), 16px) Cheers to all coders out there !
you were right, it was so simple(took me 2min 10sec), although not under-pressure /* HTML */ /* CSS */ body { display: grid; place-items: center; height: 100vh;
This was so fun to watch. Awesome content! Look forward to more on these. The moment he was not able to find the square on the design was really funnyy.
Yes, I noticed that. I think he gradually had improved his score at the challenge by submitting many times before. However, he forgot how to do it 100% right when accepting the competition =))
Was a ton of fun, and looking forward to a rematch!
How is this comment 3 days ago, but the vid came out today the 19th
3 days ago ? 😳
I think the video was private and Kevin was granted a permission to comment it
@@ahmaat19 makes sense.
Poor Kevin typing semicolons after "display" when you wanted to use grid! The pressure! Haha
Professors In College: Name your classes properly
King of CSS: uhmmm.... inner-inner-inner
I am in comment-comment-comment,,
@@Rhidayah I reply-reply-reply
aah-aah-aah
ha-ha-ha
lol-lol-lol
To see two professionals struggle like that makes you think: maybe this whole developing-thing IS possible.
Idk about everyone, but realizing this is crucial for some novice developers who keep beating themselves over nothing. It's okay to screw up and not have a clue about what to do. It's important not to lose confidence. The solution will be figured out eventually.
@@vaguebrownfox You are right. It's also important to understand that you'll never quit learning. In the beginning I thought: "First I gonna learn CSS and when that's finished, I'll start with Javascript." That epiphany quickly came to an end as I realized the dimensions of each language. So cross-platform-learning became a thing.
@@vaguebrownfox i wasted 6hours on making a navigationbar with "under-categories"
Ended up not doing it cuz the tutorials i had were bad or not mobile-compitable
AND IM STILL MOTIVATED
@@vaguebrownfox thanks buddy needed that..i was fed up just because i was unable to fix some prob
Impostor syndrome is real guys. You're all good, keep learning!
Me trying to watch other people battle with code
TH-cam ad : "So you wanna be a software engineer at Google"
AlgoExpert io!
🤣🤣🤣
That's Googol tho.😂😂😂
Google showed me a McCormick spice ad: “Back to the kitchen with you! Why are you thinking of coding?”😭🤣
@@HeatherAlarcon no way 😂😂
Kyle: "let's use a section to be more semantic"
Kevin: "haha inner inner go brrll"
So u watch Dani his jokes be poppij off lol 0_0
@@upsurge5541 people - u cant just make stupid jokes
dani-haha brr go brrrrr
❤️👉 th-cam.com/video/lmIwYLFYZ9U/w-d-xo.html 👈❤️..
I am dying 🤣🤣
Kevin: "I really enjoy CSS"
Me: Still traumatized by it
saaaaame ! had a css problem that messed me up , i solved it in a whole week lol
had images that needed to be symmetrically displayed and equal in width and height and space between
solved it finally with display grid-template-column(4,1fr)
❤️👉 th-cam.com/video/lmIwYLFYZ9U/w-d-xo.html 👈❤️..
Definetly one of the best ways to learn is to watch people solving problems in realtime. Awesome content!
True but the meaning of cssbattle is to write so close to nothing, so the fixes they show might not be optimal
@@CodeZhifty have you seen some of the cssbattle answers? that shit is ridiculous and usually only applies to that exact image.
I hate frontend
@@supernova82 keeps getting recommended
I agree 100%, while thinking about my own solution, I enjoyed this content
27:31: Kevin put ";" instead of ":" after "place-items" that's why it didn't centered
On the last element it shouldn't matter, I always thought
@@tweschke3 It is about the syntax and yeah it did matter
Oh yeah of course, i thought He Put a ":" at the end instead of a ";"
my god I saw that and I was so uncomfortable... I was literally screaming "DUDE, you wrote a ; instead of a :
@@emiljano1733 and he calls himself the CSS KING #jk
Watching this totally clueless 👁👄👁
Dev ed, Kevin Powell and Web dev simplified fans !!!!!!!!!!!!!!!
All my favourite creators watching this 😊
@@anuragsinghbam How cool is that, bro?
I love dev ed...
@@sodiumsulfur2779 That was really cool bro.
I love seeing other devs go through the thought process in real time...thinking your on the right track and then the "Oh wait...this wont work, lets think about this..". The more scripted tutorials are always great but these videos are the inspiration to show that anyone can learn to dev with practice and many iterations. Great content!!
yay! This was real fun to watch! Thanks for doing this you two! ^_^ Looking forward to seeing more CSS battles :D
It was a ton of fun. I look forward to doing more and hopefully sucking less :P
@@WebDevSimplified I wouldn't be so hard on yourself you did awesome!
It is the real cssbattle devs? Why only 11 subs tho?
@@awekeningbro1207 Yes, its the official one. We started our channel recently and there is not much content. So building up slowly. Please do subscribe us for awesome stuff incoming :)
Lovely website pal
Just got into css battles because of these videos. Watching you guys sometimes was painful, when both of you were overcomplicating things because you did not see what I did. So naturally I had to try it myself. And now i'm hooked...
Tip:
body {
margin: 0;
}
I have a snippet I call CSS Reset that I always import at the start of each project's CSS files. It resets things like these all the way to some other personal annoyances like text-decoration: underline.
tip:
*{
margin: 0;
padding: 0;
}
bro amazing channel you have
@@mansoorroeen5209 personally I feel it can change somerthing I dont want to if you'd use it in web development
i know right is box-sizing: border-box; illegal here?
You can see the moment Kevin loses confidence and starts to doubt himself. The pressure of competition isn't for everyone! Good job to both.
I for one really hate it, like doing it my way
27:40 - that one damned semi-column, can relate to it rather well lol
semi-column lol
border-radius: 0 50% 50% 50%;
That was driving my crazy watching the last match
Same but... border-radius:0 50% 50%; 😉
@@reggielj Some prefer having non shorthand version as it is faster to orient in it, but nothing wrong with both versions.
@@Saver174HowTo True, I was thinking more of what's faster to write in CSS Battle race. ;D
It was driving me crazy too!
I was thinking the same.
What I like best about these battles is that-unlike scripted, pre-planned content-they show you that even the most seasoned developers don't just regurgitate code onto a screen having it come out perfectly the first time.
It's funny when you are able to do the work EASILY and then you see how the "professionals" struggle with it and just brute force it with specific pixel placements... Bruh.
I tried the blue letter "b" thing. They could just use:
body>div.outer-circle>div.inner-circle>div.inner-line
body {
//flex and center children with justify-content and align-items
}
.outer-circle {
border-radius: 50%;
border-top-left-radius: 0;
display: flex;
//justify and align on center
}
.circle-inner {
//width and height to 50% (it's exactly half of the outer circle)
position: relative;
}
.inner-line {
transform-origin: bottom right;
bottom: 50%;
position: absolute;
width: 50% //it's exactly half of the inner circle, hence it's its child
height: 100%; //it has to cover exactly the height of the inner circle to cover the outer circle as well, and not go beyond necessary boundaries.
I came up with this solution in my head in 10 seconds, coded it working in probably 5 minutes. And as a bonus it's adaptive for all screen resolutions. Kinda cringed at these "CSS King" nicknames. CSS is too easy to be a king on it, it has a very low skill ceiling, and even if you can't solve something on your own there are hundreds of ready solutions in the web waiting for your Google search. It's just matter of time and quality. And seeing his class naming conventions, his "workaround patch fix" solutions and so much time spent I don't see a king there.
Anyway that's just my criticism of their skill and ONLY because of the "King of CSS" title which imo doesn't show in THIS particular battle.
Also the stripes in the green/yellow circles job could've been done with linear gradient in like 5 seconds.
It's fair if you say I'm a b1t©h for saying all this but on my defence there is the fact that they can't center a block vertically
@@theseangle "You Come At the King,You Best Not Miss"
@@theseangle there's just no way to believe you, if you make a video of yourself doing a challenge you've never done before while competiting against another person and still do it in 10 seconds then that's believable, not when you're not competiting against anyone and have all the time you need and there's no video filming
@@Tenchi707 well don't believe me, I don't care. Since then I have been working as a Frontend Developer and these challenges are pretty difficult, except for the ones that they chose for this video. Kevin Powell is indeed a TH-cam CSS king, just not as much in this specific video.
There's also the factor of being able to touch type and do it fast, which will obviously increase your speed. Well I've got 90 WPM typing speed. Combine it with the first possible solution that came to my head and it takes less than 5 minutes in total for a challenge like the letter b.
Just gotta think in markup
Me: He's CSS king, he must be crazy good at naming convention and writes a clean and organized understandable code.
CSS kimg: 🌚 inner-inner-inner. Understandable have a good day.
What would be the correct professional naming convention
it's so reassuring to watch other devs going through trial and error
yeah i'm totally zen now
5:33 you made me feel better about the times I write lines of code, it doesn't work how I expect it to, then I scrap the lot and start again. Glad to see it's not just me.
We need more content like this! It shows we are all humans and sometimes we don’t know how to do things
Not sure if anyone already said this in the comments, but thanks for being vulnerable by opening up like this! Time pressure makes a difference always. :)
Wow Kevin Powell is all instinct. So crazy he seemingly stumbles into the right solution but it's all his learned instinct. He definitely could've had the second one but was definitely flustered knowing he would be watched.
"I wonder why it didn't work last time" story of all my code
This was great watching how the two of you tackled achieving the same result using different techniques. So much value in this video. Thank you and please do more.
I thought I was the only one who struggle. After watching CSS king struggle, I feel like we are not too far from being on the same boat 😂. Thanks for the video guys.
Exactly
"i spelled square wrong", i felt that.
🤦🤦🤦
❤️👉 th-cam.com/video/lmIwYLFYZ9U/w-d-xo.html 👈❤️..
This needs a clock overlay, some music and you two grilling each other on your fails afterwards
Yes!
Wow.
Thanks for reminding me of my deep hatred towards CSS.
It's actually interesting
Best comment ever.
I think you haven't tried javascript
@@nandansojitra8803 i like css better than js. js language is so complicated while in css you could just type it like placing block over and over
@@max-tp1xv css is shit it takes a day to position something properly
Neither of them using "border-radius: 0 50% 50% 50%;" was just maddening.
Alternatively they could've added "border-radius-top-left: 0;"
Before this I knew I wasn't that good at CSS, but after watching this video I realize I suck at CSS.
Ikr 🤣 i thought i was fullstack but now i kinda feel much more backend without the help of CSS frameworks or libraries
LOL me too! Too funny! I feel that!
@@goldengiorno6890 But i don't actually see a practical use of such hard types of css.
I mean yeah that's true you don't get hired by drawing shapes with pure CSS but i think it's still really important to know those kind of things. Let's say you want to build a full website and you're styling with some CSS framework. You don't want your website to appear like some other default one but something unique and that's what CSS frameworks or libraries actually provide. They give you a foundation of styles and you are the one who needs to customise them. It's here where pure CSS actually help ans it's here where there is problems. You can ofc find a solution by bringing some other JS library and thus making your code not just horrible but also bloating your project with extra libraries and data which can result of a really bad user experience. But you may in this case use those CSS properties that you found useless to style the same way as another guy who bloated his website with useless libraries and trust me this makes a huge difference. Quite a long answer but just to tell you that pure CSS actually matters a lot and even those little CSS properties can make a difference.
Shoot that's a long answer i didn't knew i wrote that much 😶
holy cow watching you guys speed through the first part and talk through the thoughts was insanely eye opening for me, and I'm sure many others.
👍
ahaha I was dying at the class="sqaure" troubleshooting
No it was when the "CSS King" scrapped place items centre because it was place-items; centre;
He didnt notice the colon is a semicolon lol
The place item and the typo on square bothered me so much. It’s insane how such things mess coders up so badly
@@weirdernow but he makes meme the "sqaure" make it cracks 🤣
@@kgenextreme the every programmer nightmare. Bug of typo
@@Rhidayah ok. Btw the last challenge is sooooo ez that 9 year old me can do it in less thab 2 minutes
Loved this! Also glad I’m not the only one who is like ‘why isn’t it working’ only to find it’s a typo.
Do battle with Dev Ed. We love watching that
Why you do this
@@sarcasticdna why u du dis !! 💯🙏🏻
There would be too much laughing lol!
Dev Ed. will be busy showing his magic tricks
I think you can use another way of doing this.
You can include all of those divs in one div classed container. Then, if we make the body flex and do justify content to center, all of the elements would center. Then we can class all of the triangle divs and give them a z-index. Then, we can move the first and the last triangles up and down respectively. Then, we can add colours to them. This may sound too much but it takes around 6 minutes only.
Things I find very reassuring in this video: CSS experts looking confused and saying, "That should work!"
My neighbour literally knocked on my door to see why I was laughing so loud. Thank you guys for the great laugh, was hilarious :D
So pros too make speculations 🤗
This should work, tried, it didn't work.
This may not work, tried, it worked. 😂
Gives me hope
27:30 - place-items should have had a colon instead of a semi-colon and it would've worked! I was screaming at the screen when I saw it as if I was the one competing, shows you even the best can succumb to these things under pressure :)
I thought i was the only one who saw it 😆
i've never writtern in CSS but hoooly this battles are so interesting
These are great to watch, and educational. I'm an ex-coder now project manager, and learning css just for fun is great. Tearing my hair out on the circle one - just use a border on the circle one, transparent one side and rotate!
Using box-shadow property and before, after pseudo elements in these type of css challenges saves a lot of divs
My solution to Round 2:
You create that small egg-yellow colored circle.
Then you create a rectangle and put it above that small circle.
Then you give that rectangle a repeating linear gradient with light yellow and dark green colors.
Then you create another big circle.
You give that big circle a thick dark green border, and a transparent fill and position it in the center so it covers the sides of rectangle making it look curvy.
22:21: ~ almost losing, manages to draw the Eye of Sauron. He truly is the CSS King
Sauron: So, you have chosen CSS.
20:26 yellow circle: use an outer div with centered items, a fixed height (small enough to cut off both Y ends of circle) and overflow hidden. darker yellow stays the same. just add the lines on top and youre fine
For the second round, I would have chosen a div (display: flex; and flex-direction: column) with 7 children, each odd child to have a different color (and flex: 1 to make them equal). To cut it into a circle I would have used clip-path: circle (); on the parent container. It would have been short and efficient.
For the third round, it is worth using border-radius: 0 50% 50% 50%. The upper left corner would have remained unchanged and the others would have been rounded.
However, the fact that you posted a video in which you did not do everything perfectly makes me glad that I have been watching you both for so long! Congratulations!
Hind sight is always 20-20 tho ;-)
i havent use clip path before but i was thinking of same but would have make a transparent outer circle with overflow hidden ! thats what i think will work ! havent tried yet though
@@back4stab this is how it looks like with clip-path:
.parent-rectangle {
height: 200px;
width: 400px;
clip-path: circle(60%);
display: flex;
flex-direction: column;
}
.child-line {
flex: 1;
background-color: white;
}
.child-line:nth-child(even) {
background-color: orange;
}
Linear-gradient backgrounds would have saved you a lot of time and extra divs on both the circle & lines exercise and the funky circle/line. I always struggle with triangles so thanks for the refresher. This is a fun challenge! I am going to have to go do some on my own. Keep killing it!
Watching you guys struggle was so hilarious. Guys you made my day!
Kevin is one of my heroes. I haven't been able to code since losing my laptop but his lessons and the things he helped me learn when I was taking his courses are completely unmatched...look forward to learning from both of y'all again when I get my stuff back after about 4 months of no code
Use your phone to code and reduce that to one month
I didn't knew that making the Bixby button would result in such a 10 minute struggle.
Awesome battle, it was very entertaining and fun to watch.
Very great video and thanks Kyle, for introducing me to Kevin, didn't know about him, subbed!
haha "I'm a little bit nervous...hopefully I crush him."
This and the rematch are my favorite videos of the year
nobody:
literally no soul on planet earth:
kevin: i rEallY enJoY cSS
For round maybe it is possible to use "tape" divs in-on the circles. They could have the background color, relative to the circle height, always full width.
yellow one : three tapes in middle.
green one : one top one bottom.
They would get clipped to the circle's boundary with overflow:hidden too.
"I spelled square wrong" I lost it there 😂😂 Great content, Kyle!
I just loved that!!! It was great seeing how the "pro's" struggle with decisions of how to approach something. I hope we have many more of these !!
I plan to make more of these videos since they are really fun to make.
why didn't you had a voice call in the end. would have been interesting
It was fun to see you struggle.
You gave me confidence to keep learning💀
Seeing these guys struggle with the first challenge gave me so much hope for myself. See ya in the workforce, boooooyyyys.
all of the challenges werent that... I dont get how they messed up the second one.
2nd Challenge tip :
Create a small circle green
Create a second circle bigger than first with transparent background add 7 lines inside circle and overflow hidden , thats it 👍
14:08 - why does the "Last Score" say 100% Match?
He is a sneaky bitch who had solved this problem beforehand
This one video was better than some courses that are completed in hours. Please make more like these
Actually... round 2 at 14:15 you literally just need two more dark green div. Put it between the bigger and smaller circle z-index, so it only cover the bigger circle.
but the bigger circle should draw over the smaller one
I love that show the mistakes and how you have solved them
Kevin: So you have chosen death!
this video is AMAZING! it helps so much to see two different minds trying to each solve the challenge, for me it's just as educational to watch than it is fun. Thank You Guys!
I was struggling today with css and web dev simplied got a platform for me to practice ♥
i know nothing about css and i cant stop watching this.
20:41 , here's solution :
1. make a circle exactly same as yellow and same position.
2. make border same as size of lines. and adjust circle position.
3. make border top and bottom same as background color. other two will transparent.
4. make circle background transparent.
5. make those middle lines above them all ( z-index : 500; )
_________________________
Thanks for reading.
😇 Hva Great Day .
My take is using rgba gradient
@@delulu6969 👍👍
This was really educational. I cant believe people actually do this on the internet. This is mind blowing!
Can't we just screenshot it and then use background-image lmao
Photoshop it 😂
Hahaa. It's actually against the rules
hahahahahahahahahha
lol
The file is too big and slow
I can see that its not about your knowledge but about your creativity and skills. different routes, same destination although different comfort.
Moral of the story: Everything can be fixed with liberal appliance of divs.
Nice video. Very fun to watch! It makes me want to do this challenge with my friends.
for the last challenge, I will use the relative + absolute with percentage of the parent div to solve the problem. It can be used in every parts.
circle outer - body relative circle absolute top-left-transform 50/50
circle inner - absolute on outer cricle top-left-transform 50/50 and 50% width of the outer
square - absolute top-left 0 width 50% height 50% bg dark blue, the other half is :after absolute with square top-0 right-0 width 50% height 50% with more z-index light blue bg
More like this please.
Started CSS yesterday, and my approach to the third challenge was three squares of each 50% smaller than the last one, the first two give a border radius of 0% 50% 50% 50% and then offset the smallest to align with the edge created in the second smallest
Dude, this one I pressed like before I watch!! Cool!
I always do the same.
Holy hell man. I didn't know this was gonna be this much fun. Superb video.
In the second one we can use
border-top-left-radius: 0;
And it'll be done.
It's harder to think when we're in hurry 😂
I was thinking that they are gonna use it immediately.
I'm guessing you mean the 3rd one (with blue background). Second was with yellow stripes
For the Sunset challenge i found neat trick. I used just two circles, and lines. Green circle then has to have background with linear gradient where middle is transparent. Like this:
background: linear-gradient(#998235 50px, transparent 50px, transparent 150px ,#998235 151px );
That assures, that middle of the circle is tranparent. You have to just set z-index for your lines and you are good to go.
Watching the CSS king struggle with round three which for me was pretty easy to recreate is sooooooooo satisfying. 😊
And I just learned CSS this week from his introductory Course on Scrimba.
Thanks guys, That was a lot of fun. I played along with you (with a lot of pauses), and learned some nice tricks. I had emmet to help out, mind you.
For the three CSS creators, I would launch them the challenge to create a solid tutorial about **flex-shrink** which is not well explained nor in (simplest) W3Schools, not in (the advanced) MDN neither in expert world of StackOverflow. I consider it a very important thing for responsive design since smartphones were created except for grid and media queries maybe. If they cannot do it at highest level I would put myself to work to make it ;) Btw tell me if you find useful this small one here: font-size: minmax(calc(0.5em + 1vw), 16px)
Cheers to all coders out there !
OMG both of these people are my hero! The CSS Gods !!
At round 3 I was like:
border-radius: 0% 50% 50% 50%;
Only one div with a border
Yeah can also be
border-radius: 50%;
border-top-right-radius: 0;
you were right, it was so simple(took me 2min 10sec), although not under-pressure
/* HTML */
/* CSS */
body {
display: grid;
place-items: center;
height: 100vh;
}
.outer {
border-radius: 0% 50% 50% 50%;
background: lightcoral;
width: 150px;
height: 150px;
display: grid;
place-items: center;
}
.inner {
background: #fff;
width: 50%;
height: 50%;
border-radius: 50%;
position: relative;
}
.inner::before {
content: '';
width: 50%;
height: 100%;
position: absolute;
left: 0;
top: -50%;
background: #fff;
}
@@sidharthsid3429
* {
margin: 0;
}
body {
display: grid;
place-items: center;
height: 100vh;
background: #6592CF;
}
body > div {
width: 100px;
height: 100px;
border: 50px solid #243D83;
border-radius: 0% 50% 50% 50%;
position: relative;
}
div div {
background: #6592CF;
width: 50px;
height: 50px;
position: absolute;
top: -50px;
}
or so :)
Same man. Dunno why do they did it?
This was so fun to watch. Awesome content! Look forward to more on these.
The moment he was not able to find the square on the design was really funnyy.
So, I'm not the only one that struggles with CSS 🤔
No, I hate CSS, bcoz of CSS i avoid frontend development, now I'm a backend developer.
Wow, *Great* CSS battle, very entertaining and it helped me alot in my current website redesign - thanks again and you rock!
Neither just set the top-left to border-radius: 0 for the “Letter B” challenge?
Exactly what I was thinking too 😅
border-radius: 0 50% 50% 50%;
obvious stuff is sometimes hidden if you are under pressure ;)
@@Des0war0ich0netAgentNoMiss bruh you should totally check this out 😂
th-cam.com/video/ub6FIPpojoI/w-d-xo.html
@@Des0war0ich0netAgentNoMiss Very true!
Fun to watch, but learned a little and love seeing others making multiple small changes/corrections to values to get right look.
17:51 When it says: "Last Score: 600.01 (100% match)", does it mean he has already done this particular task before the challenge?
hmm, if he had done, would have some highscore...
Yes, I noticed that. I think he gradually had improved his score at the challenge by submitting many times before. However, he forgot how to do it 100% right when accepting the competition =))
Loving this! Unique addition to your channel! Keep them coming!
Pseudo-elements: have we been forgotten?
was thinking the same, round 2 was really easy... and both didnt get it 😅 calling that guy the CSS King is a bit to much
What would be a strategy for refactoring with pseudo elements?
I guess these guys are looking at them as an :after thought
"this looks super easy and that depresses me because I have no idea what to do"
relatable, kevin. relatable.
when he says kevin is like a css king :
the css battle website developer be like:-am i joke to you?
lol so true didnt think of that
I think a team made it not only one person but idk
@@yvng4697 It's just a joke dont take it seriously
@@dynpallomah lol oh ok I thought he was serious
kevins the king that guy's the god ezpz
Enjoyed watching and seeing each of you taking a different approach to the same challenge. Awesome!
I was looking at the last challenge and thinking why didn't they use "border-radius: 0 150px 150px 150px;"
Exactly what I was thinking! Would have saved a good minute.
I was yelling this at the TV.
100% same
Man I S U F F E R E D
You were so close on that Sunset. Another circle with transparent background and background color box shadow would make it 100%! Great video!