I Challenged The CSS King To A CSS Battle

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024

Комментарии • 1,6 тыс.

  • @KevinPowell
    @KevinPowell 3 года назад +4266

    Was a ton of fun, and looking forward to a rematch!

    • @kevin5523
      @kevin5523 3 года назад +22

      How is this comment 3 days ago, but the vid came out today the 19th

    • @PodSnippets28
      @PodSnippets28 3 года назад +4

      3 days ago ? 😳

    • @ahmaat19
      @ahmaat19 3 года назад +37

      I think the video was private and Kevin was granted a permission to comment it

    • @victorwestmann
      @victorwestmann 3 года назад +2

      @@ahmaat19 makes sense.

    • @chrisandrew_tv
      @chrisandrew_tv 3 года назад +17

      Poor Kevin typing semicolons after "display" when you wanted to use grid! The pressure! Haha

  • @developedbyed
    @developedbyed 3 года назад +3430

    Watching this totally clueless 👁👄👁

    • @sodiumsulfur2779
      @sodiumsulfur2779 3 года назад +157

      Dev ed, Kevin Powell and Web dev simplified fans !!!!!!!!!!!!!!!

    • @anuragsinghbam
      @anuragsinghbam 3 года назад +66

      All my favourite creators watching this 😊

    • @sodiumsulfur2779
      @sodiumsulfur2779 3 года назад +7

      @@anuragsinghbam How cool is that, bro?

    • @alliedeena1141
      @alliedeena1141 3 года назад +17

      I love dev ed...

    • @anuragsinghbam
      @anuragsinghbam 3 года назад +6

      @@sodiumsulfur2779 That was really cool bro.

  • @timbittins
    @timbittins 3 года назад +1841

    To see two professionals struggle like that makes you think: maybe this whole developing-thing IS possible.

    • @vaguebrownfox
      @vaguebrownfox 3 года назад +249

      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.

    • @timbittins
      @timbittins 3 года назад +61

      @@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.

    • @ALexpLK
      @ALexpLK 3 года назад +48

      @@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

    • @stevestiffler8875
      @stevestiffler8875 3 года назад +6

      @@vaguebrownfox thanks buddy needed that..i was fed up just because i was unable to fix some prob

    • @bogzbiny
      @bogzbiny 3 года назад +33

      Impostor syndrome is real guys. You're all good, keep learning!

  • @woltah7122
    @woltah7122 3 года назад +3150

    Professors In College: Name your classes properly
    King of CSS: uhmmm.... inner-inner-inner

  • @TheLegoody
    @TheLegoody 3 года назад +466

    Kevin: "I really enjoy CSS"
    Me: Still traumatized by it

    • @justaguywholikeshentai9019
      @justaguywholikeshentai9019 3 года назад +9

      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)

    • @GamingTSH
      @GamingTSH 2 года назад

      ❤️👉 ruclips.net/video/lmIwYLFYZ9U/видео.html 👈❤️..

  • @sanjivmadhavan5705
    @sanjivmadhavan5705 3 года назад +583

    Me trying to watch other people battle with code
    RUclips ad : "So you wanna be a software engineer at Google"

    • @damdamdamdumdidum
      @damdamdamdumdidum 3 года назад +43

      AlgoExpert io!

    • @mrgredy5068
      @mrgredy5068 3 года назад

      🤣🤣🤣

    • @VishalGupta-nk4bw
      @VishalGupta-nk4bw 3 года назад

      That's Googol tho.😂😂😂

    • @HeatherAlarcon
      @HeatherAlarcon 3 года назад +24

      Google showed me a McCormick spice ad: “Back to the kitchen with you! Why are you thinking of coding?”😭🤣

    • @BIGDRIP2
      @BIGDRIP2 3 года назад +4

      @@HeatherAlarcon no way 😂😂

  • @lucastperez
    @lucastperez 3 года назад +1140

    Kyle: "let's use a section to be more semantic"
    Kevin: "haha inner inner go brrll"

    • @upsurge5541
      @upsurge5541 3 года назад +4

      So u watch Dani his jokes be poppij off lol 0_0

    • @maedre9330
      @maedre9330 3 года назад +6

      @@upsurge5541 people - u cant just make stupid jokes
      dani-haha brr go brrrrr

    • @GamingTSH
      @GamingTSH 2 года назад

      ❤️👉 ruclips.net/video/lmIwYLFYZ9U/видео.html 👈❤️..

    • @aristotelis700
      @aristotelis700 2 года назад +1

      I am dying 🤣🤣

  • @Sky_ye
    @Sky_ye 3 года назад +814

    Tip:
    body {
    margin: 0;
    }

    • @DerickMasai
      @DerickMasai 3 года назад +38

      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.

    • @mansoorroeen5209
      @mansoorroeen5209 3 года назад +88

      tip:
      *{
      margin: 0;
      padding: 0;
      }

    • @2b2treposter13
      @2b2treposter13 3 года назад +10

      bro amazing channel you have

    • @Sky_ye
      @Sky_ye 3 года назад +6

      @@mansoorroeen5209 personally I feel it can change somerthing I dont want to if you'd use it in web development

    • @lonelybiscuit243
      @lonelybiscuit243 3 года назад +13

      i know right is box-sizing: border-box; illegal here?

  • @kharapov
    @kharapov 3 года назад +722

    Definetly one of the best ways to learn is to watch people solving problems in realtime. Awesome content!

    • @CodeZhifty
      @CodeZhifty 3 года назад +2

      True but the meaning of cssbattle is to write so close to nothing, so the fixes they show might not be optimal

    • @ryanthecow
      @ryanthecow 3 года назад +10

      @@CodeZhifty have you seen some of the cssbattle answers? that shit is ridiculous and usually only applies to that exact image.

    • @tootaashraf1
      @tootaashraf1 3 года назад +1

      I hate frontend

    • @tootaashraf1
      @tootaashraf1 3 года назад

      @@supernova82 keeps getting recommended

    • @jeanpierreunis
      @jeanpierreunis 3 года назад +1

      I agree 100%, while thinking about my own solution, I enjoyed this content

  • @kjantzer
    @kjantzer 3 года назад +111

    border-radius: 0 50% 50% 50%;
    That was driving my crazy watching the last match

    • @reggielj
      @reggielj 3 года назад +10

      Same but... border-radius:0 50% 50%; 😉

    • @Saver174HowTo
      @Saver174HowTo 3 года назад +3

      @@reggielj Some prefer having non shorthand version as it is faster to orient in it, but nothing wrong with both versions.

    • @reggielj
      @reggielj 3 года назад +1

      @@Saver174HowTo True, I was thinking more of what's faster to write in CSS Battle race. ;D

    • @owenrossi-keen2594
      @owenrossi-keen2594 3 года назад +2

      It was driving me crazy too!

    • @pengai9344
      @pengai9344 3 года назад +1

      I was thinking the same.

  • @10YardCricket
    @10YardCricket 3 года назад +276

    27:31: Kevin put ";" instead of ":" after "place-items" that's why it didn't centered

    • @tweschke3
      @tweschke3 3 года назад +1

      On the last element it shouldn't matter, I always thought

    • @10YardCricket
      @10YardCricket 3 года назад +15

      @@tweschke3 It is about the syntax and yeah it did matter

    • @tweschke3
      @tweschke3 3 года назад +5

      Oh yeah of course, i thought He Put a ":" at the end instead of a ";"

    • @emiljano1733
      @emiljano1733 3 года назад +36

      my god I saw that and I was so uncomfortable... I was literally screaming "DUDE, you wrote a ; instead of a :

    • @10YardCricket
      @10YardCricket 3 года назад +8

      @@emiljano1733 and he calls himself the CSS KING #jk

  • @Arigatex
    @Arigatex 3 года назад +73

    This needs a clock overlay, some music and you two grilling each other on your fails afterwards

  • @Hizbullla
    @Hizbullla 3 года назад +628

    Wow.
    Thanks for reminding me of my deep hatred towards CSS.

    • @TheNikhilify
      @TheNikhilify 3 года назад +21

      It's actually interesting

    • @freizagen
      @freizagen 3 года назад +1

      Best comment ever.

    • @nandansojitra8803
      @nandansojitra8803 3 года назад +6

      I think you haven't tried javascript

    • @max-tp1xv
      @max-tp1xv 3 года назад +4

      @@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

    • @eternalflower8026
      @eternalflower8026 3 года назад +34

      @@max-tp1xv css is shit it takes a day to position something properly

  • @sanchitghai1455
    @sanchitghai1455 2 года назад +44

    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.

    • @Tenchi707
      @Tenchi707 Год назад +1

      What would be the correct professional naming convention

  • @cssbattle
    @cssbattle 3 года назад +312

    yay! This was real fun to watch! Thanks for doing this you two! ^_^ Looking forward to seeing more CSS battles :D

    • @WebDevSimplified
      @WebDevSimplified  3 года назад +41

      It was a ton of fun. I look forward to doing more and hopefully sucking less :P

    • @Allformyequine
      @Allformyequine 3 года назад +2

      @@WebDevSimplified I wouldn't be so hard on yourself you did awesome!

    • @awekeningbro1207
      @awekeningbro1207 3 года назад +4

      It is the real cssbattle devs? Why only 11 subs tho?

    • @cssbattle
      @cssbattle 3 года назад +9

      @@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 :)

    • @hassanali-yi4bu
      @hassanali-yi4bu 3 года назад

      Lovely website pal

  • @LegacyUntouched
    @LegacyUntouched 3 года назад +53

    "I wonder why it didn't work last time" story of all my code

  • @02KAINE
    @02KAINE 3 года назад +8

    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.

  • @dehnhunsworth1600
    @dehnhunsworth1600 3 года назад +114

    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!!

  • @azertykeys3285
    @azertykeys3285 3 года назад +54

    ahaha I was dying at the class="sqaure" troubleshooting

    • @weirdernow
      @weirdernow 3 года назад +7

      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

    • @kgenextreme
      @kgenextreme 3 года назад +2

      The place item and the typo on square bothered me so much. It’s insane how such things mess coders up so badly

    • @Rhidayah
      @Rhidayah 3 года назад +2

      @@weirdernow but he makes meme the "sqaure" make it cracks 🤣

    • @Rhidayah
      @Rhidayah 3 года назад

      @@kgenextreme the every programmer nightmare. Bug of typo

    • @weirdernow
      @weirdernow 3 года назад +3

      @@Rhidayah ok. Btw the last challenge is sooooo ez that 9 year old me can do it in less thab 2 minutes

  • @EmadElSammad
    @EmadElSammad 3 года назад +7

    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

  • @safintheship
    @safintheship 3 года назад +105

    "i spelled square wrong", i felt that.

    • @Danko_HS
      @Danko_HS 3 года назад

      🤦🤦🤦

    • @GamingTSH
      @GamingTSH 2 года назад

      ❤️👉 ruclips.net/video/lmIwYLFYZ9U/видео.html 👈❤️..

  • @WitherBossEntity
    @WitherBossEntity 3 года назад +33

    Moral of the story: Everything can be fixed with liberal appliance of divs.

  • @iben1195
    @iben1195 3 года назад +57

    So pros too make speculations 🤗
    This should work, tried, it didn't work.
    This may not work, tried, it worked. 😂

  • @benediktwalch1605
    @benediktwalch1605 3 года назад +10

    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.

  • @Nicky411
    @Nicky411 3 года назад +126

    Before this I knew I wasn't that good at CSS, but after watching this video I realize I suck at CSS.

    • @goldengiorno6890
      @goldengiorno6890 3 года назад +9

      Ikr 🤣 i thought i was fullstack but now i kinda feel much more backend without the help of CSS frameworks or libraries

    • @Allformyequine
      @Allformyequine 3 года назад

      LOL me too! Too funny! I feel that!

    • @dfla5472
      @dfla5472 3 года назад

      @@goldengiorno6890 But i don't actually see a practical use of such hard types of css.

    • @goldengiorno6890
      @goldengiorno6890 3 года назад +14

      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.

    • @goldengiorno6890
      @goldengiorno6890 3 года назад +4

      Shoot that's a long answer i didn't knew i wrote that much 😶

  • @jordanlayton6540
    @jordanlayton6540 3 года назад +52

    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.

    • @Tenchi707
      @Tenchi707 Год назад

      I for one really hate it, like doing it my way

  • @THEBEST-lh6pq
    @THEBEST-lh6pq 3 года назад +103

    27:40 - that one damned semi-column, can relate to it rather well lol

  • @smooth_9248
    @smooth_9248 2 года назад +1

    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.

  • @TheJachi97
    @TheJachi97 3 года назад +96

    it's so reassuring to watch other devs going through trial and error

  • @RajVadla
    @RajVadla 3 года назад +65

    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.

  • @SandwichMitGurke
    @SandwichMitGurke 3 года назад +21

    why didn't you had a voice call in the end. would have been interesting

  • @wesonweb
    @wesonweb 3 года назад +1

    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.

  • @matthewshen
    @matthewshen 3 года назад +47

    nobody:
    literally no soul on planet earth:
    kevin: i rEallY enJoY cSS

  • @exlog5186
    @exlog5186 3 года назад +69

    Can't we just screenshot it and then use background-image lmao

  • @goodvibrato
    @goodvibrato 3 года назад +20

    haha "I'm a little bit nervous...hopefully I crush him."

  • @JabirBhr
    @JabirBhr 3 года назад +1

    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 👍

  • @purplealma
    @purplealma 3 года назад +24

    Kevin: So you have chosen death!

  • @sampson1952
    @sampson1952 3 года назад +1

    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 !!

    • @WebDevSimplified
      @WebDevSimplified  3 года назад +1

      I plan to make more of these videos since they are really fun to make.

  • @erics.k.cheung2237
    @erics.k.cheung2237 3 года назад +20

    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.

  • @nataliachies8623
    @nataliachies8623 11 месяцев назад

    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

  • @vela-6
    @vela-6 3 года назад +9

    Neither of them using "border-radius: 0 50% 50% 50%;" was just maddening.
    Alternatively they could've added "border-radius-top-left: 0;"

  • @theegreatestever2420
    @theegreatestever2420 3 года назад

    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

    • @TechWithAchiever
      @TechWithAchiever 3 года назад

      Use your phone to code and reduce that to one month

  • @thesamarthshah
    @thesamarthshah 3 года назад +48

    Do battle with Dev Ed. We love watching that

    • @sarcasticdna
      @sarcasticdna 3 года назад +4

      Why you do this

    • @techsauce2706
      @techsauce2706 3 года назад +1

      @@sarcasticdna why u du dis !! 💯🙏🏻

    • @Allformyequine
      @Allformyequine 3 года назад +1

      There would be too much laughing lol!

    • @ZhaoHH
      @ZhaoHH 3 года назад

      Dev Ed. will be busy showing his magic tricks

  • @naveenrana3144
    @naveenrana3144 3 года назад

    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.

  • @mulanszechuansauceisthemeaning
    @mulanszechuansauceisthemeaning 3 года назад +19

    14:08 - why does the "Last Score" say 100% Match?

    • @hassanali-yi4bu
      @hassanali-yi4bu 3 года назад +24

      He is a sneaky bitch who had solved this problem beforehand

  • @SteveWinnard
    @SteveWinnard 3 года назад

    Thanks guys for this. I've learned a truck-load watching your videos @Kevin, and after a day spent working on some other CSS stuff watched this video to see how the pros tackled the unknown. And I was surprised to find that the challenges faced, for me were surprisingly easy to complete with 99% success the first time. Like I said, that's a direct result of learning from you.

  • @MarkTheSWE
    @MarkTheSWE 3 года назад +12

    I'm sending a challenge to all software engineers that don't put respect on frontend engineers 🤣

  • @RomeshJainn
    @RomeshJainn Год назад

    Third one can be solved by :-
    * Creating a outer circle
    * Placing another small circle inside that
    * And for the square part just create a square color it similar to the background & place it to the center-left side. By this you'll get the space to put up the horizontal rectangle.
    * Now create a div and set width nd height as needed...than put it accordingly.
    Solved.

  • @wordshot1506
    @wordshot1506 3 года назад +46

    when he says kevin is like a css king :
    the css battle website developer be like:-am i joke to you?

    • @dynpallomah5918
      @dynpallomah5918 3 года назад +3

      lol so true didnt think of that

    • @yvng4697
      @yvng4697 3 года назад +2

      I think a team made it not only one person but idk

    • @dynpallomah5918
      @dynpallomah5918 3 года назад +2

      @@yvng4697 It's just a joke dont take it seriously

    • @yvng4697
      @yvng4697 3 года назад +1

      @@dynpallomah5918 lol oh ok I thought he was serious

    • @boyananakiev4896
      @boyananakiev4896 3 года назад

      kevins the king that guy's the god ezpz

  • @ashutoshanand4263
    @ashutoshanand4263 3 года назад +1

    27:32 In .outer class, after place-items property, semi-colon is used instead of colon. That's why it didn't work.

  • @juanmejia7096
    @juanmejia7096 3 года назад +19

    So, I'm not the only one that struggles with CSS 🤔

    • @nammi895
      @nammi895 3 года назад +2

      No, I hate CSS, bcoz of CSS i avoid frontend development, now I'm a backend developer.

  • @IVargasO
    @IVargasO 3 года назад

    I love that show the mistakes and how you have solved them

  • @johfarrell
    @johfarrell 2 года назад +21

    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.

    • @TeoAl
      @TeoAl 2 года назад +1

      but the bigger circle should draw over the smaller one

  • @masuphamakhube3553
    @masuphamakhube3553 3 года назад

    This was really educational. I cant believe people actually do this on the internet. This is mind blowing!

  • @nekocari
    @nekocari Год назад +5

    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...

  • @ganeshh1257
    @ganeshh1257 2 года назад

    Last one is quite simple:
    circle: {
    width: 100px,
    height: 100px,
    borderRadius: 50%,
    borderWidth: 20px,
    borderColor: Black,
    display: flex
    alignSelf: center,
    zIndex: 1,
    marginTop: -50px
    }
    square: {
    width: 50px
    height: 50px
    borderLeftWidth: 20px
    borderColor: Black
    display: flex
    alignSelf: center
    marginLeft: -50px
    zIndex: 2
    }

  • @anythgofnthg154
    @anythgofnthg154 3 года назад +23

    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.

    • @theseangle
      @theseangle 2 года назад +2

      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
      @theseangle 2 года назад

      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

    • @stepheng684
      @stepheng684 2 года назад

      ​@@theseangle "You Come At the King,You Best Not Miss"

    • @Tenchi707
      @Tenchi707 Год назад

      @@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

    • @theseangle
      @theseangle Год назад

      @@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 RUclips 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

  • @grmpf
    @grmpf 3 года назад +1

    It looks like linear gradients, borders, and pseudo elements would be one's friends in these types of challenges.

  • @ChrisCanMakeStuff
    @ChrisCanMakeStuff 3 года назад +6

    Things I find very reassuring in this video: CSS experts looking confused and saying, "That should work!"

  • @piyushaggarwal5207
    @piyushaggarwal5207 Год назад +1

    It would have been awesome if you both could talk to each other about the challenges in the end

  • @jonasboardwalker
    @jonasboardwalker 3 года назад +12

    We need more content like this! It shows we are all humans and sometimes we don’t know how to do things

  • @MrSam1804
    @MrSam1804 2 года назад +1

    the B is possible with 2 divs. one with a border, another with box shadow.

  • @miguelangelandreu7411
    @miguelangelandreu7411 3 года назад +8

    i've never writtern in CSS but hoooly this battles are so interesting

  • @Alsuoner2
    @Alsuoner2 2 года назад

    Kevin: "Awesome, 100% match, that wasn't so bad"
    Me: PPPPPPFFFFFFFFFFFFFF **literally mindblowned**

  • @ToatsMcGoats534
    @ToatsMcGoats534 3 года назад +8

    Who else came here thinking this was gonna be a Counter-Strike: Source video hahahaha
    just me? ok.

  • @frankmyers4736
    @frankmyers4736 3 года назад

    I don't do css and have no clue how any of this works but I love watching it

  • @SuperVOVANCHO
    @SuperVOVANCHO 3 года назад +21

    I was looking at the last challenge and thinking why didn't they use "border-radius: 0 150px 150px 150px;"

  • @alajit
    @alajit 3 года назад

    Kevin tbh CSS Battle is very engaging and is amazing to watch, while we know you guys are eually talented a friendly battle everythen and now would be an amazing addon kinda series to your channel.

  • @awekeningbro1207
    @awekeningbro1207 3 года назад +7

    Using box-shadow property and before, after pseudo elements in these type of css challenges saves a lot of divs

  • @saurabhkunwar806
    @saurabhkunwar806 3 года назад

    Kevin: I don't have time to name my class.
    Class name: inner-inner-inner

  • @pigma15
    @pigma15 3 года назад +13

    At round 3 I was like:
    border-radius: 0% 50% 50% 50%;

    • @ahmedmeftah1993
      @ahmedmeftah1993 3 года назад

      Only one div with a border

    • @udaysrivastava1957
      @udaysrivastava1957 3 года назад

      Yeah can also be
      border-radius: 50%;
      border-top-right-radius: 0;

    • @sidharthsid3429
      @sidharthsid3429 3 года назад +5

      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;
      }

    • @pigma15
      @pigma15 3 года назад +2

      @@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 :)

    • @abhishek.rathore
      @abhishek.rathore 3 года назад

      Same man. Dunno why do they did it?

  • @scum3112
    @scum3112 2 года назад

    I’m a student studying back end development but I think front end development would be a good tool to have as well. I just feel like it would be easier to learn on my own. This is really fun to watch

  • @udaysrivastava1957
    @udaysrivastava1957 3 года назад +22

    In the second one we can use
    border-top-left-radius: 0;
    And it'll be done.

    • @callmed6756
      @callmed6756 3 года назад +2

      It's harder to think when we're in hurry 😂

    • @animals_74
      @animals_74 3 года назад +2

      I was thinking that they are gonna use it immediately.

    • @sharakpl
      @sharakpl 3 года назад +1

      I'm guessing you mean the 3rd one (with blue background). Second was with yellow stripes

  • @nparashar150
    @nparashar150 3 года назад

    27:41 @Kevin Powell : why is it not working ???
    Well check place-items; center;
    ";" instead of ":"
    Although it was really fun watching you guys :)
    Really great devs out there. You guys are my inspiration.

  • @webdevprojects7460
    @webdevprojects7460 3 года назад +10

    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!

    • @Allformyequine
      @Allformyequine 3 года назад

      Hind sight is always 20-20 tho ;-)

    • @back4stab
      @back4stab 3 года назад

      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

    • @webdevprojects7460
      @webdevprojects7460 3 года назад

      @@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;
      }

  • @Zacban
    @Zacban 2 года назад

    Since no one seems to have pointed out why place-items didnt work at: 27:35
    You placed a semicolon instead of a colon between key and value making it: place-items; center;

  • @arshdeepkumar2586
    @arshdeepkumar2586 3 года назад +6

    I was struggling today with css and web dev simplied got a platform for me to practice ♥

  • @abdihakimmohamoud6302
    @abdihakimmohamoud6302 2 года назад +1

    i know nothing about css and i cant stop watching this.

  • @callmeFernie
    @callmeFernie 3 года назад +6

    "I spelled square wrong" I lost it there 😂😂 Great content, Kyle!

  • @southoceann
    @southoceann 2 года назад

    Btw the last problem would be a lot simpler if we set separate border-radius for each corner.
    border-radius: 0 50% 50% 50%;
    Im surprised none of them used it.

  • @F7INN
    @F7INN 3 года назад +5

    Clicked this thinking it was about Counter Strike: Source

  • @nicosoftnt
    @nicosoftnt 3 года назад

    27:30 That gave me a ton of stress I was almost screaming, it was a syntax mistake
    28:35 Oh my god the sqaure part too!!! 😂😂😂😂😂😂😂😂😂😂😂 I think I learned so much in this vid, I'm not alone!!

  • @thekwoka4707
    @thekwoka4707 3 года назад +3

    Strange how each one had them centering things and they always chose just totally different ways to center it each time...
    There was the 50% translate, grid align items, just putting random numbers, flex justify, margin auto.
    Like, it's cool that there are lots of ways to center things but just pick one and use it every time...

  • @BenjaminSwenson
    @BenjaminSwenson 2 года назад

    thanks for this one! It was a great way for me to learn.

  • @mikehobi
    @mikehobi 3 года назад +12

    Neither just set the top-left to border-radius: 0 for the “Letter B” challenge?

    • @truthShallPrevailRRVS
      @truthShallPrevailRRVS 3 года назад +1

      Exactly what I was thinking too 😅
      border-radius: 0 50% 50% 50%;

    • @Des0war0ich0netAgentNoMiss
      @Des0war0ich0netAgentNoMiss 3 года назад +3

      obvious stuff is sometimes hidden if you are under pressure ;)

    • @truthShallPrevailRRVS
      @truthShallPrevailRRVS 3 года назад

      @@Des0war0ich0netAgentNoMiss bruh you should totally check this out 😂
      ruclips.net/video/ub6FIPpojoI/видео.html

    • @mikehobi
      @mikehobi 3 года назад

      @@Des0war0ich0netAgentNoMiss Very true!

  • @1Cygapb1
    @1Cygapb1 3 года назад

    Its possible to finish last task with only 2 divs: one is round width border and second is sqare with border-left: dark-blue and border-right: light-blue - voila! Or even maybe only one div with ::before pseudo-element.

  • @muhammadasadhaider6893
    @muhammadasadhaider6893 3 года назад +3

    I honestly think Kevin threw the second round on purpose, no way could he be this much off.

  • @eduardlache1480
    @eduardlache1480 3 года назад

    Round 3: different approach:






    .container{
    width: 100%;
    position: absolute;
    height: 100%;
    background-color: #6592cf;
    display: flex;
    align-items: center;
    justify-content: center;
    }
    .cercle{
    background-color: #6592cf;
    width: 200px;
    height: 200px;
    border-radius: 100%;
    border: 50px solid #243D83;
    box-sizing: border-box;
    position: absolute;
    }
    .mask{
    background: linear-gradient(90deg, #243D83 50%, #6592cf 50%) ;
    width: 100px;
    height: 100px;
    position: absolute;
    top: 0;
    }
    .outer-div{
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    position: absolute;
    }

  • @paulosantana9607
    @paulosantana9607 3 года назад +30

    22:21: ~ almost losing, manages to draw the Eye of Sauron. He truly is the CSS King

  • @bryanDaMazo16
    @bryanDaMazo16 3 года назад

    The CSSKing made the Sauron eye instead of the green circle with yellow lines at 22:59

  • @evebella3118
    @evebella3118 3 года назад +3

    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 !

  • @limbo74
    @limbo74 3 года назад

    On round 2 I would have used the clip property on the top yellow circle to cut out the top and bottom parts...

  • @ed1nh0
    @ed1nh0 3 года назад +8

    Dude, this one I pressed like before I watch!! Cool!

  • @fenilli
    @fenilli 3 года назад

    My inner clean code is killing me watching this videos, all of those solutions look so hacky it shows basically how hacky CSS is.

  • @retroke6560
    @retroke6560 3 года назад +8

    goddamn yt, i was expecting an epic 1v1 in counter-strike:source, not CSS like programming.

  • @yuli1970
    @yuli1970 2 года назад

    I would do the last challenge with two divs. One is has a huge dark blue border and border radius 50% on all except the top left corner and then the second div will make the gap.

  • @matthewstaton6810
    @matthewstaton6810 3 года назад +5

    Seeing these guys struggle with the first challenge gave me so much hope for myself. See ya in the workforce, boooooyyyys.

    • @iKyroja
      @iKyroja 3 года назад

      all of the challenges werent that... I dont get how they messed up the second one.

  •  3 года назад

    Would be interesting to watch a ngrx battle... those challenging can be mind blowing

  • @Paco1337
    @Paco1337 3 года назад +4

    And I'm here struggling how to make box responsive 🤣

  • @Hermitagup64
    @Hermitagup64 3 года назад

    That was very interesting to watch, thanks :)