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Ай бұрын
Thanks. I missed the linear-gradient, rest was as I implemented.
@Dariansweb3 ай бұрын
cool man i did not even know there was a css battle page. that was lots of fun, thanks brother.
@zackfoster32082 ай бұрын
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%; }
@gregtasi3 ай бұрын
I'm really glad you are making a video like this again! I love CSSBattle! :D
@ar-jun66312 ай бұрын
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Ай бұрын
Nice!
@VeitLehmann3 ай бұрын
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.
@ptung903 ай бұрын
It's really crazy, I've tried everything but can only get 508 characters. What tricks do you usually use?
@VeitLehmann3 ай бұрын
@@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-cm5bi3 ай бұрын
i have 480 characters with #204, and i have no idea what to improve. But i'm not front-end dev.
@VeitLehmann3 ай бұрын
@@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.
@aurobindobhuyan21073 ай бұрын
We want rematch with Kevin 😂😂
@dieudonne28843 ай бұрын
😂😂
@programmingpillars68052 ай бұрын
wow , im stunned how big this channel became ..
@kopilkaiser89913 ай бұрын
You are the best in explaining complex CSS 😁
@krishnamoorthi94862 ай бұрын
Great video brother.
@Sporadics247Ай бұрын
Obviously 😂
@Sporadics247Ай бұрын
Obviously 😂
@Dorgrident3 ай бұрын
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Ай бұрын
A circle with linear gradient and border with before after I guess...
@AJCrowley3 ай бұрын
Would have been a golden opportunity to explorer content-box and border-box to control your overflows.
@harag93 ай бұрын
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Ай бұрын
good video you have one of the best channels for css
@GoldenMechaTiger3 ай бұрын
Would you actually try to make things like this using css in the real world? Would you not just use an image here?
@kresuu35673 ай бұрын
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
@GoldenMechaTiger3 ай бұрын
@@kresuu3567 But the knowledge won't be very useful if you're never making these complex icons using css in the real world
@kresuu35673 ай бұрын
@@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
@kuzestudio73833 ай бұрын
Always love your content but the deadpool solution makes me cry 😂
@pratikthorat34803 ай бұрын
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. 😢
@atemrandyasong57103 ай бұрын
He has a hair tutorial available... Check the channel
@pratikthorat34803 ай бұрын
@@atemrandyasong5710 thanks
@mti42463 ай бұрын
This was a really fun video.
@kevinbatdorf3 ай бұрын
would love to see the first one done by hand as an svg
@shankxproductions72182 ай бұрын
Now make it responsive 💀
@karimbouche35633 ай бұрын
Great kyle bravo
@notmewooshme99163 ай бұрын
Skill issue
@ingelegenial3 ай бұрын
😂😂😂
@IlyesCodes3 ай бұрын
😂😂😂
@anuvette2 ай бұрын
😂😂😂
@f_cfox2 ай бұрын
😂😂😂
@zaf417Ай бұрын
😂😂😂
@dand44853 ай бұрын
Love your stuff Kyle, just feels like you and Kevin Powell need another match... 🤪
@bernardiego3 ай бұрын
26.5, Kyle :)
@yvng46973 ай бұрын
Guys do not log into Css Battles or else you cant delete your account.
@azusunwr2 ай бұрын
Wdym??
@yvng46972 ай бұрын
@@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-sx9ke3 ай бұрын
Please bring some advanced projects on pure javascript
@youtubervideos3 ай бұрын
Without javascript below video kzbin.info/www/bejne/iXW2k5d9ZZ6dmtU
@Dorgrident3 ай бұрын
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-ul7oo3 ай бұрын
Why can't just use svg?
@VeitLehmann3 ай бұрын
It's not allowed in this challenge. In production code, sure, that's what you would probably go for most of the time.
@Kitodev2 ай бұрын
You are lazy 😂
@technicalatul82702 ай бұрын
🎉🎉🎉
@sphe-X2 ай бұрын
gradients :)
@samyborsos83943 ай бұрын
What Browser is he using?
@kapiqu27093 ай бұрын
Arc
@davlatberdinazarov1793 ай бұрын
Hello from 4
@QuantumCanvas072 ай бұрын
CSS people are designers not programmers so idfc
@filon8612 ай бұрын
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.
@okkaraung95123 ай бұрын
if you are not good enough, who is ?
@igordalpiazbauer21413 ай бұрын
happy to be first!
@ezwtwrziehag17363 ай бұрын
hey why do you shake your head left and right all the time ?
@justineawunudo10053 ай бұрын
Because he's probably using two screens, one to write code and the other to render the page
@harag93 ай бұрын
@@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.
@sfspmusic2 ай бұрын
Never noticed anything wrong about this channel
@makhmudjonjamoldinov35543 ай бұрын
it feels like u are soooo frsutrated, and nervous on live...
@paulwright45353 ай бұрын
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-xxx3 ай бұрын
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 😒
@ibrahimblahblahyapyap3 ай бұрын
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-xxx3 ай бұрын
@@ibrahimblahblahyapyap tnk you brother That's my point exactly Some ppl are just selfish 🧐 Besides he's the only one complaining 😒
@paulwright45353 ай бұрын
@@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-xxx3 ай бұрын
@@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👋