Am I Good Enough To Solve These CSS Battles?

  Рет қаралды 91,933

Web Dev Simplified

Web Dev Simplified

Күн бұрын

Пікірлер: 84
@jfftck
@jfftck 3 ай бұрын
You can do the Deadpool with one div, ::before, ::after, border, and linear-gradient; it shouldn’t take so many elements, plus it would be easy to insert multiple copies on a page.
@sirajmussafirr147
@sirajmussafirr147 Ай бұрын
Thanks. I missed the linear-gradient, rest was as I implemented.
@Dariansweb
@Dariansweb 3 ай бұрын
cool man i did not even know there was a css battle page. that was lots of fun, thanks brother.
@zackfoster3208
@zackfoster3208 2 ай бұрын
This was a lot of fun. Especially doing it differently and still getting a good result. I only created one circle for the black circles and simply worked with gradients to color the middle red. this is the class for the div (note that i only looked at the video, the size might be a bit off cause i couldn't compare exactly) .black-circle { background: linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 40%, rgba(159,51,51,1) 40%, rgba(159,51,51,1) 60%, rgba(0,0,0,1) 60%, rgba(0,0,0,1) 100%); height: 166px; width: 166px; border-radius: 100%; position: absolute; top: 50%; left: 17px; translate: 0 -50%; }
@gregtasi
@gregtasi 3 ай бұрын
I'm really glad you are making a video like this again! I love CSSBattle! :D
@ar-jun6631
@ar-jun6631 2 ай бұрын
Lets try making a circle with bg black border 5px solid red and border radius 50% Add before and after element for eyes and place a absolute div for the middle line
@Sporadics247
@Sporadics247 Ай бұрын
Nice!
@VeitLehmann
@VeitLehmann 3 ай бұрын
The fun really starts when you try to get the character count down. Sure, you'll end up with crazy hacks, but it's addictive, and there's no way back! I got #204 down to 223 characters (and hope to improve it still, it's an ongoing battle), and #198 down to 195 characters😁 You will also learn a lot, even if you might only use 5% of your learnings in production code.
@ptung90
@ptung90 3 ай бұрын
It's really crazy, I've tried everything but can only get 508 characters. What tricks do you usually use?
@VeitLehmann
@VeitLehmann 3 ай бұрын
@@ptung90 Which one are you talking about? Let's take #198 as an example: - Remove as much white-space as possible - You can use different units like %, vw, vh, em, ch, in, cm, q etc. - For some properties, especially old ones like margin, padding, width, height, you can omit the units and just put numbers to define pixel values - Use the * selector, and also nest it - Don't write out html and body, they're implicitly there - Use custom properties for repeating things You can also check the solutions of the daily targets to learn all the tricks
@ithelp-cm5bi
@ithelp-cm5bi 3 ай бұрын
i have 480 characters with #204, and i have no idea what to improve. But i'm not front-end dev.
@VeitLehmann
@VeitLehmann 3 ай бұрын
@@ithelp-cm5bi That's awesome, almost top 100, keep going! I'm playing this for more than a year already, and over time, you get better and better. So now I'm trying to get into the top 10. I have tried a couple of approaches for this target already, but I have no clue how on earth this can be brought down to less than 200 characters... And I am a front-end dev for more than 20 years now.
@aurobindobhuyan2107
@aurobindobhuyan2107 3 ай бұрын
We want rematch with Kevin 😂😂
@dieudonne2884
@dieudonne2884 3 ай бұрын
😂😂
@programmingpillars6805
@programmingpillars6805 2 ай бұрын
wow , im stunned how big this channel became ..
@kopilkaiser8991
@kopilkaiser8991 3 ай бұрын
You are the best in explaining complex CSS 😁
@krishnamoorthi9486
@krishnamoorthi9486 2 ай бұрын
Great video brother.
@Sporadics247
@Sporadics247 Ай бұрын
Obviously 😂
@Sporadics247
@Sporadics247 Ай бұрын
Obviously 😂
@Dorgrident
@Dorgrident 3 ай бұрын
Your version is very unstable. 1. Use a border. or set the inner circle to inset: 0 and then use a margin to maintain the ratios. 2. Position everything in relation to each other. if stuff is not 100% center, still set it to 50%, and then use calc to move it a few pixels up or down. 3. User clippath to cut the circles in half. 4. copy your left half and use scaleX(-1) to create an exact mirrored copy of your left half.
@binodgurung3367
@binodgurung3367 Ай бұрын
A circle with linear gradient and border with before after I guess...
@AJCrowley
@AJCrowley 3 ай бұрын
Would have been a golden opportunity to explorer content-box and border-box to control your overflows.
@harag9
@harag9 3 ай бұрын
Not bad... but it would be better if they would be scalable so not to use px settings so at the size defined it matches , but change the resolution and it should still look the same.
@brendenwardle6585
@brendenwardle6585 Ай бұрын
good video you have one of the best channels for css
@GoldenMechaTiger
@GoldenMechaTiger 3 ай бұрын
Would you actually try to make things like this using css in the real world? Would you not just use an image here?
@kresuu3567
@kresuu3567 3 ай бұрын
The thing about css battles is not that you'll use what you actually do, like the deadpool face. It's more about building confidence to analyze a structure and being able to replicate it. Developing knowledge and learning new css properties along the way is also great
@GoldenMechaTiger
@GoldenMechaTiger 3 ай бұрын
@@kresuu3567 But the knowledge won't be very useful if you're never making these complex icons using css in the real world
@kresuu3567
@kresuu3567 3 ай бұрын
@@GoldenMechaTiger doing a complex little deadpool face can be broken down into steps. Aligning absolute elements, making half a circle, morphing elements along the x and y axis, etc. Are things that you will use in any project
@kuzestudio7383
@kuzestudio7383 3 ай бұрын
Always love your content but the deadpool solution makes me cry 😂
@pratikthorat3480
@pratikthorat3480 3 ай бұрын
Hey this is amazing video. But honestly, I am not sure if I can use these techniques to debug how to have a hairstyle like you. 😢
@atemrandyasong5710
@atemrandyasong5710 3 ай бұрын
He has a hair tutorial available... Check the channel
@pratikthorat3480
@pratikthorat3480 3 ай бұрын
@@atemrandyasong5710 thanks
@mti4246
@mti4246 3 ай бұрын
This was a really fun video.
@kevinbatdorf
@kevinbatdorf 3 ай бұрын
would love to see the first one done by hand as an svg
@shankxproductions7218
@shankxproductions7218 2 ай бұрын
Now make it responsive 💀
@karimbouche3563
@karimbouche3563 3 ай бұрын
Great kyle bravo
@notmewooshme9916
@notmewooshme9916 3 ай бұрын
Skill issue
@ingelegenial
@ingelegenial 3 ай бұрын
😂😂😂
@IlyesCodes
@IlyesCodes 3 ай бұрын
😂😂😂
@anuvette
@anuvette 2 ай бұрын
😂😂😂
@f_cfox
@f_cfox 2 ай бұрын
😂😂😂
@zaf417
@zaf417 Ай бұрын
😂😂😂
@dand4485
@dand4485 3 ай бұрын
Love your stuff Kyle, just feels like you and Kevin Powell need another match... 🤪
@bernardiego
@bernardiego 3 ай бұрын
26.5, Kyle :)
@yvng4697
@yvng4697 3 ай бұрын
Guys do not log into Css Battles or else you cant delete your account.
@azusunwr
@azusunwr 2 ай бұрын
Wdym??
@yvng4697
@yvng4697 2 ай бұрын
@@azusunwr If you change your mind and you want to delete your account, there's no option to delete it. And I'm pretty sure that's illegal.
@AmandeepSingh-sx9ke
@AmandeepSingh-sx9ke 3 ай бұрын
Please bring some advanced projects on pure javascript
@youtubervideos
@youtubervideos 3 ай бұрын
Without javascript below video kzbin.info/www/bejne/iXW2k5d9ZZ6dmtU
@Dorgrident
@Dorgrident 3 ай бұрын
no need to position absolute on the second battle. this is a flex element width skewed divs. incase there are more elements coming in the future, you should not call the elements "element-1,2,3,4,5" and so on, but work with nth-child.
@akhileshakhi-ul7oo
@akhileshakhi-ul7oo 3 ай бұрын
Why can't just use svg?
@VeitLehmann
@VeitLehmann 3 ай бұрын
It's not allowed in this challenge. In production code, sure, that's what you would probably go for most of the time.
@Kitodev
@Kitodev 2 ай бұрын
You are lazy 😂
@technicalatul8270
@technicalatul8270 2 ай бұрын
🎉🎉🎉
@sphe-X
@sphe-X 2 ай бұрын
gradients :)
@samyborsos8394
@samyborsos8394 3 ай бұрын
What Browser is he using?
@kapiqu2709
@kapiqu2709 3 ай бұрын
Arc
@davlatberdinazarov179
@davlatberdinazarov179 3 ай бұрын
Hello from 4
@QuantumCanvas07
@QuantumCanvas07 2 ай бұрын
CSS people are designers not programmers so idfc
@filon861
@filon861 2 ай бұрын
if i need to create a half circle. i always do `border-radius: 0 0 100vw 100vw;` and it automatically turns the border radius to pill shape. and i dont have to play around and guess the px values.
@okkaraung9512
@okkaraung9512 3 ай бұрын
if you are not good enough, who is ?
@igordalpiazbauer2141
@igordalpiazbauer2141 3 ай бұрын
happy to be first!
@ezwtwrziehag1736
@ezwtwrziehag1736 3 ай бұрын
hey why do you shake your head left and right all the time ?
@justineawunudo1005
@justineawunudo1005 3 ай бұрын
Because he's probably using two screens, one to write code and the other to render the page
@harag9
@harag9 3 ай бұрын
@@justineawunudo1005 No. it's when he's generally talking, not looking at screens. I find it distracting quite a bit, but there isn't anything he can do about it. it's like a nervous twitch or something.
@sfspmusic
@sfspmusic 2 ай бұрын
Never noticed anything wrong about this channel
@makhmudjonjamoldinov3554
@makhmudjonjamoldinov3554 3 ай бұрын
it feels like u are soooo frsutrated, and nervous on live...
@paulwright4535
@paulwright4535 3 ай бұрын
I Love your videos - but dude you need to make things a bit more exciting in your voice and tone ( I realise thats your style, but sometimes I drop off asleep listening along) - There's plenty of KZbin tutorials on improving your speaking voice, and articulation and to keep the learners attention/retention.
@redx001-xxx
@redx001-xxx 3 ай бұрын
He trying he's best And besides it doesn't even matter, as long as what he's explaining is understood perfectly your opinion on his voice and style is basically invalid 😒
@ibrahimblahblahyapyap
@ibrahimblahblahyapyap 3 ай бұрын
So you don’t love his videos. Criticism, why must he change to accommodate your needs? This style of thinking continues to grow demand on a person until an inevitable breaking point, an unnecessary and unpleasant burden on someone else in exchange for self-interest.
@redx001-xxx
@redx001-xxx 3 ай бұрын
@@ibrahimblahblahyapyap tnk you brother That's my point exactly Some ppl are just selfish 🧐 Besides he's the only one complaining 😒
@paulwright4535
@paulwright4535 3 ай бұрын
@@redx001-xxx Not complaining at all - Im providng valuable feedback. How else would the presenter learn to why x-amount of the audience disappear or fall asleep. It's knee jerk reactions that anything other than a "WOO ARESOME" is seen as trolling or being a mean ole dude. When in fact, with a bit of healthy honest feedback helps others learn.
@redx001-xxx
@redx001-xxx 3 ай бұрын
@@paulwright4535 yes, valuable feedback indeed Like telling him his videos make ppl sleep isn't hard enough to be labeled criticism or just straight up bullying but I'm the troll, So much for being a jobless cyber bully😒 Better crawl back into that basement you live it at ur parents house👋
@liquid394
@liquid394 3 ай бұрын
@виртуоз_ру
@виртуоз_ру 3 ай бұрын
Хорош 👍
Can I Beat The King Of CSS Again? - CSS Battle
12:40
Web Dev Simplified
Рет қаралды 249 М.
Master CSS Overflow/Text Wrapping Like A Senior Developer
20:53
Web Dev Simplified
Рет қаралды 59 М.
УДИВИЛ ВСЕХ СВОИМ УХОДОМ!😳 #shorts
00:49
HARD_MMA
Рет қаралды 3,8 МЛН
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 238 МЛН
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 8 МЛН
THIS PORTFOLIO IS INSANE - Roasting your dev sites #3
17:59
Anthony Sistilli
Рет қаралды 123 М.
Top 10 Advanced CSS Responsive Design Concepts You Should Know
20:16
Web Dev Simplified
Рет қаралды 539 М.
This tool annoyed me (so I built a free version)
19:38
Theo - t3․gg
Рет қаралды 193 М.
Can You Solve These 3 CSS Battles Faster Than Me?
39:12
Web Dev Simplified
Рет қаралды 9 М.
I Solved 100 LeetCode Problems
13:11
Green Code
Рет қаралды 254 М.
This Took Me 150 Hours to Code
16:40
Kenny Gunderman
Рет қаралды 291 М.
I Challenged An Expert Designer To A CSS Battle
42:30
Web Dev Simplified
Рет қаралды 73 М.
CSS Anchor Is The Best New CSS Feature Since Flexbox
15:39
Web Dev Simplified
Рет қаралды 376 М.
No One Hires Jr Devs So I Made A Game
39:31
ThePrimeTime
Рет қаралды 338 М.
The Only Accessibility Video You Will Ever Need
37:33
Web Dev Simplified
Рет қаралды 37 М.