The border-radius feature most people don’t know about

  Рет қаралды 289,974

Kevin Powell

Kevin Powell

Күн бұрын

Did you know that each corner of a border-radius can have two different values, one of the X axis and one for the Y axis?
#css
--
Come hang out with other dev's in my Discord Community
💬 / discord
Keep up to date with everything I'm up to
✉ www.kevinpowel...
Come hang out with me live every Monday on Twitch!
📺 / kevinpowellcss
---
Help support my channel
👨‍🎓 Get a course: www.kevinpowel...
👕 Buy a shirt: teespring.com/...
💖 Support me on Patreon: / kevinpowell
---
My editor: VS Code - code.visualstu...
---
I'm on some other places on the internet too!
If you'd like a behind the scenes and previews of what's coming up on my KZbin channel, make sure to follow me on Instagram and Twitter.
Twitter: / kevinjpowell
Codepen: codepen.io/kev...
Github: github.com/kev...
---
And whatever you do, don't forget to keep on making your corner of the internet just a little bit more awesome!

Пікірлер: 110
@muhammadfarzat8869
@muhammadfarzat8869 Жыл бұрын
The explanation makes it 10x better
@itspawanpoudel
@itspawanpoudel Жыл бұрын
The visual explanation with cricle*
@flaviosobbin8274
@flaviosobbin8274 Жыл бұрын
Bro knows more than the developers of CSS3
@LethalLuggage
@LethalLuggage Жыл бұрын
Just wanna point out I was doing this trick in web dev 101 my first time ever learning any CSS. We were told to explore what was possible with css3 and all my images had a wonky white border
@pacitonito1903
@pacitonito1903 Жыл бұрын
​@LethalLuggage U want a cookie bro?
@xellr
@xellr 11 ай бұрын
anyone who says "bro" has brain damage
@AnassSanba-f5d
@AnassSanba-f5d 10 ай бұрын
Because he is full time job is css lol
@sayeghjoe
@sayeghjoe Жыл бұрын
I can’t believe that even after 15 years, you’re still showing me new CSS tricks. You’re phenomenal👏🏻
@yaarooruvan4310
@yaarooruvan4310 10 ай бұрын
bcz css is getting even more features in this 15 years
@goodshiro10
@goodshiro10 Жыл бұрын
that property : 1x the example use case : 10x THAT VISUAL CIRCLE FOR EXPLANATION : beyond infinity
@sudarrshang8922
@sudarrshang8922 Жыл бұрын
Wow this is superb
@Lampe2020
@Lampe2020 8 ай бұрын
Normally I go right over videos like this, but this one is actually interesting and helpful to me. So congrats, you got me to watch and like a video of a type I would normally skip and not waste a single thought on!
@Gasshette
@Gasshette Жыл бұрын
That's a godlike short every developper should see haha thanks for the free knowledge !
@DasBauer
@DasBauer Жыл бұрын
I never looked into border-radius' definition. I thought one value per corner was the way. Great video, very helpful.
@HeyJes
@HeyJes Жыл бұрын
Great explanation! I knew about this but I always sort of thought the syntax was confusing.
@terablast
@terablast 9 ай бұрын
What the hell, a "feature you didn't know" video about a feature i actually didn't know?! Never knew it was ellipses all along
@ColinRichardson
@ColinRichardson 9 ай бұрын
You know.... I DID NOT know this one... This is one of the first surprising css tips I had not known.. I tip my hat to you good sir.
@NotKyleChicago
@NotKyleChicago 3 ай бұрын
I didn't realize you could do elliptical borders in specific corner like this.
@RiskyMeal
@RiskyMeal Жыл бұрын
I've been looking for this feature for so long!!! Thx man
@ramzyabdul185
@ramzyabdul185 6 ай бұрын
I just started learning CSS, but I honestly didn't know this and no one mentioned this.. I feel like I will really love css more than ever after watching most of ur videos.. I even get the news reports on my email from u ❤❤
@elcontrastador
@elcontrastador 6 ай бұрын
Stumbled across this…great tip.
@abhayprince
@abhayprince 10 ай бұрын
I didn't know about it. Going to try it right away
@arjunjayakumar4841
@arjunjayakumar4841 Жыл бұрын
Good info Kev
@Noritoshi-r8m
@Noritoshi-r8m 4 ай бұрын
Clever, very well explained
@oluwarotimiajayi
@oluwarotimiajayi 9 ай бұрын
Kevin never fails to blooow my mind😮
@Sachin-at
@Sachin-at 8 ай бұрын
This dude blows my mind every time 🤯
@gollamadish
@gollamadish Жыл бұрын
wait, is it possible for shorthand border-radius to have 8 values?
@KevinPowell
@KevinPowell Жыл бұрын
yeah, it would look like this: border-radius: 10px 100px 10px 20px / 50px 10px 30px 120px; and it's kinda awkward :D
@GR_BackingTracks
@GR_BackingTracks Жыл бұрын
Oh, i was missing the slash, ​@@KevinPowell! I could only get 4...
@aram5642
@aram5642 Жыл бұрын
Yes, I knew it, I once won a bet that I could draw an egg using pure css!
@penguinxed
@penguinxed Жыл бұрын
wow wth i never knew this, awesome stuff mr Kevin
@mrgamerzyt3945
@mrgamerzyt3945 Жыл бұрын
I didn't knew we can do border-top-right-radius
@mrgamerzyt3945
@mrgamerzyt3945 Жыл бұрын
@@GammaDev. what the helllllll
@Lampe2020
@Lampe2020 8 ай бұрын
Well, I knew that because the Firefox DevTools automatically display a little arrow in the CSS inspector for compound properties, clicking on it expands it to show the value of each subproperty. But I didn't know you can pass two values, although it makes sense.
@satwiksv2749
@satwiksv2749 11 ай бұрын
Very helpful thank you
@Sinke_100
@Sinke_100 Жыл бұрын
👑 of css 🙂
@TheBaberKhan
@TheBaberKhan 3 ай бұрын
How come this is not taught in any tutorial. This seems like a very interesting thing to know
@patrykkuniczak2516
@patrykkuniczak2516 Жыл бұрын
You're amazing ❤
@kellychristus2496
@kellychristus2496 Жыл бұрын
Great information!
@Rkot_scholes
@Rkot_scholes Жыл бұрын
Greater
@cheskoxd
@cheskoxd Жыл бұрын
Great information ❤
@SuswagatamRong
@SuswagatamRong 7 ай бұрын
Hey, about the visual guide in the video... do you make those yourself or do you know a website for it? I am learning CSS, so a visual guide would be a great assistance.
@hassamulhaq7762
@hassamulhaq7762 11 ай бұрын
Superb
@afzalhamdulay
@afzalhamdulay Жыл бұрын
Bruh. I said to my myself in my head. Yes i know this finally but then you said that you can give two values to border top right and i was like daaaamnnn!😂😂😂
@JulienReszka
@JulienReszka Жыл бұрын
Mind: blown
@ClaudioBernasconi
@ClaudioBernasconi 8 ай бұрын
Whenever I master another CSS level, another level appears. 😅
@srglmr
@srglmr 11 ай бұрын
How to make squircle in css ?
@tarasshevchuk8477
@tarasshevchuk8477 10 ай бұрын
Nice
@ronaldc8634
@ronaldc8634 Жыл бұрын
awesome
@ShaharHarshuv
@ShaharHarshuv Жыл бұрын
I wonder what's the real word usecase for it
@ThomasGHenry
@ThomasGHenry 4 ай бұрын
Huge!
@BazieleSaah
@BazieleSaah 9 ай бұрын
Where does this guy learn about these things
@TheCray100
@TheCray100 5 ай бұрын
My cat likes this vid. She slapped you a high five mid way in. 😂
@Mempler
@Mempler Жыл бұрын
Does any browser have a tool to show how the circle radius look like? Like you did in the video. Math is great and all but cant help you if you cannot visualize the result in your head and you have to trial and error
@theseangle
@theseangle Жыл бұрын
He just ran his project with a package called nodemon and it hot reloads on save. On the bottom is the browser that he has open on the side of his screen. He just edited it in to the bottom of the video so it's more visible on phones. UPD: Oops, misunderstood the question
@KevinPowell
@KevinPowell Жыл бұрын
Mempler, not that I know of, no. I used a pseudo-element to create that, which is why I switched to using custom properties, so it would update the actual radius and my pseudo-element to help visualize it :)
@Mempler
@Mempler Жыл бұрын
​@@theseanglehappens lol
@bechirzouaoui5821
@bechirzouaoui5821 9 ай бұрын
Qss support this ? Or only css
@AnioryX
@AnioryX 10 ай бұрын
Font name ?? Used in vs editor?
@abhishekrawat6040
@abhishekrawat6040 10 ай бұрын
😮🤯
@allenpaulson8345
@allenpaulson8345 Жыл бұрын
How is the browser support for this
@emmanuelo1177
@emmanuelo1177 Жыл бұрын
Seriously??? You expect Kevin to answer this when you could just check w3schools or mdn.
@KevinPowell
@KevinPowell Жыл бұрын
if it supports border-radius, it supports this :)
@hamdaniash-siddiq5021
@hamdaniash-siddiq5021 4 ай бұрын
why dont anybody tell us earlier for such an important thing..
@raviel498
@raviel498 11 ай бұрын
😮
@ahmad-murery
@ahmad-murery Жыл бұрын
I wish there is a negative border radius
@darthtorus9341
@darthtorus9341 Жыл бұрын
So like a concave corner?
@KevinPowell
@KevinPowell Жыл бұрын
There is talk for some different types of shapes that we might be able to eventually do, but probably a ways of
@ahmad-murery
@ahmad-murery Жыл бұрын
@@KevinPowell Nice, thanks for the info Kevin!
@ahmad-murery
@ahmad-murery Жыл бұрын
@@darthtorus9341 Exactly
@encilaj1444
@encilaj1444 Жыл бұрын
crazy haha
@AYA-GAMING_SHORTS
@AYA-GAMING_SHORTS 7 ай бұрын
Op op op
@tiriana2
@tiriana2 6 ай бұрын
And now you can spend 3h choosing the right values and call it "work"
@emjizone
@emjizone 10 ай бұрын
Another "did you know?" video again… Read the fu##### documentation ! ;p
@MaximM999
@MaximM999 10 ай бұрын
Omagad
@Animefan-sn1gu
@Animefan-sn1gu 11 ай бұрын
why are u using px
@soluschristus96
@soluschristus96 Жыл бұрын
An in-depth CSS course using such visuals as part of the material for study would make the learning process so much more enlightening ❤
@angelsv
@angelsv Жыл бұрын
This is the reason why I have never been able to learn CSS properly, because there is so many features and properties that can screw up your UI coding 😢
@Earth_Being
@Earth_Being Жыл бұрын
This gentleman is among those few who can really TEACH. Otherwise whole internet is filled with those D heads who makes you feel like it's beyond rocket science.
@chrisberry6575
@chrisberry6575 10 ай бұрын
WHO REALLY KNOWS CSS????
@Learner156
@Learner156 Жыл бұрын
when i saw border-radius ..i was like i know atleast this one finally.. within seconds my happiness gone...hmm..oh ..god... it has two i don't know this...again proven you never dis-satisfy with your content
@cedrictheveneau9141
@cedrictheveneau9141 8 ай бұрын
Already knew this one, my mentor during my cursus showed me this trick Though I still haven’t had the opportunity to use it cause none ever want ellyptic border radiuses lol
@BleedingDev
@BleedingDev Жыл бұрын
Does that mean we can have squircles with pure CSS? :O
@OnePieceWonPeace
@OnePieceWonPeace 5 ай бұрын
How do you create beveled/clipped corners?
@Taramushi
@Taramushi Жыл бұрын
すごい!
@unhhgcrxexhjvuvujchcrzwzwz7956
@unhhgcrxexhjvuvujchcrzwzwz7956 9 ай бұрын
Yaa… definitely knew that lol
@sunofabeach9424
@sunofabeach9424 9 ай бұрын
what the fuck is that language
@strategistaow3520
@strategistaow3520 8 ай бұрын
Oh i didn't know that thank you bro
@minkeymoo
@minkeymoo 6 ай бұрын
Holy shit thats cool
@jp0678
@jp0678 Жыл бұрын
didn't know that, thanks!
@cedrichirschi7236
@cedrichirschi7236 11 ай бұрын
Nice, awesome content
@tinongnjong1305
@tinongnjong1305 Жыл бұрын
Didn’t know lol 😂
@vitaliiverdiiev7272
@vitaliiverdiiev7272 3 ай бұрын
Yooooo, thank!
@maxharris748
@maxharris748 4 ай бұрын
Witchcraft
@josegamarra3532
@josegamarra3532 7 ай бұрын
What!
@juanpasten6077
@juanpasten6077 Жыл бұрын
Nice!
@diegof9399
@diegof9399 5 ай бұрын
I already knew it was possible, but never grasped it 100%. The explanation was awesome
@JaimeBIDtravel
@JaimeBIDtravel Жыл бұрын
Would it be possible to kind of make a vignette speech bubble with this property?
@JoshuaClancy12
@JoshuaClancy12 11 ай бұрын
Kevin Powell you are so helpful. I was wondering the most natural way to create a claymorphism button and you just helped me. Border top right left bottom and different values so it looks handcrafted.
@crowlsyong
@crowlsyong Жыл бұрын
woah. legendary. thank you
@snich1950
@snich1950 Жыл бұрын
How to use that tool that shows a colored green transparent ellipse?
@The3er0
@The3er0 Жыл бұрын
I know you can do the same with shorthand with slash for example: border-radius: 10px 10px 30px 50px / 30px 40px 60px 10px;
@KevinPowell
@KevinPowell Жыл бұрын
Yup! I wanted to look more at how it works though :) - I had the time though, so I probably should have mentioned that at the end.
@hikari1690
@hikari1690 Жыл бұрын
Wait, isn't this the first thing you learn when reading about border radius? Or has the documentation changed and no longer mentions this?
@KevinPowell
@KevinPowell Жыл бұрын
It's in the documentation, but most people don't read that 😅. A lot forget too, since you don't use it often
@JDalmasca
@JDalmasca Жыл бұрын
Excellent illustration!
@yassinesafraoui
@yassinesafraoui Жыл бұрын
Oh that's pretty neat! But I wonder where would it be useful 🤔
@KevinPowell
@KevinPowell Жыл бұрын
You can make interesting blob shapes by doing it on all sides, there are a couple of good generators out there to help too
@AngryApple
@AngryApple 10 ай бұрын
I want a border-squircle-radius 🥲
Using CSS custom properties like this is a waste
16:12
Kevin Powell
Рет қаралды 172 М.
OpenAI’s New ChatGPT: 7 Incredible Capabilities!
6:27
Two Minute Papers
Рет қаралды 186 М.
Spongebob ate Michael Jackson 😱 #meme #spongebob #gmod
00:14
Mr. LoLo
Рет қаралды 8 МЛН
GIANT Gummy Worm Pt.6 #shorts
00:46
Mr DegrEE
Рет қаралды 86 МЛН
How To Get Married:   #short
00:22
Jin and Hattie
Рет қаралды 20 МЛН
Man Mocks Wife's Exercise Routine, Faces Embarrassment at Work #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 5 МЛН
Learn CSS Positioning Quickly With A Real World Example
8:32
Slaying The Dragon
Рет қаралды 659 М.
Use these instead of vh
6:06
Kevin Powell
Рет қаралды 510 М.
The CSS :has() pseudo-class
3:30
Igalia
Рет қаралды 2,5 М.
These CSS PRO Tips & Tricks Will Blow Your Mind!
8:48
Coding2GO
Рет қаралды 338 М.
No, Flexbox isn't "good enough"
9:18
Kevin Powell
Рет қаралды 41 М.
CSS Tips And Tricks I Wish I Knew Before
12:12
Lama Dev
Рет қаралды 480 М.
Create Crazy 3D Image Slider Effects Using CSS Only
14:07
Lun Dev
Рет қаралды 363 М.
Top 10 CSS One Liners That Will Blow Your Mind
13:34
developedbyed
Рет қаралды 960 М.
Improve your reset with these modern CSS additions
4:38
Kevin Powell
Рет қаралды 37 М.
Spongebob ate Michael Jackson 😱 #meme #spongebob #gmod
00:14
Mr. LoLo
Рет қаралды 8 МЛН