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

  Рет қаралды 286,932

Kevin Powell

Kevin Powell

9 ай бұрын

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.kevinpowell.co/newsletter
Come hang out with me live every Monday on Twitch!
📺 / kevinpowellcss
---
Help support my channel
👨‍🎓 Get a course: www.kevinpowell.co/courses
👕 Buy a shirt: teespring.com/stores/making-t...
💖 Support me on Patreon: / kevinpowell
---
My editor: VS Code - code.visualstudio.com/
---
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/kevinpowell/
Github: github.com/kevin-powell
---
And whatever you do, don't forget to keep on making your corner of the internet just a little bit more awesome!

Пікірлер: 111
@muhammadfarzat8869
@muhammadfarzat8869 8 ай бұрын
The explanation makes it 10x better
@itspawanpoudel
@itspawanpoudel 8 ай бұрын
The visual explanation with cricle*
@flaviosobbin8274
@flaviosobbin8274 8 ай бұрын
Bro knows more than the developers of CSS3
@LethalLuggage
@LethalLuggage 8 ай бұрын
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 8 ай бұрын
​@LethalLuggage U want a cookie bro?
@xellr
@xellr 7 ай бұрын
anyone who says "bro" has brain damage
@user-re8lt2gy3g
@user-re8lt2gy3g 7 ай бұрын
Because he is full time job is css lol
@sayeghjoe
@sayeghjoe 8 ай бұрын
I can’t believe that even after 15 years, you’re still showing me new CSS tricks. You’re phenomenal👏🏻
@yaarooruvan4310
@yaarooruvan4310 7 ай бұрын
bcz css is getting even more features in this 15 years
@sudarrshang8922
@sudarrshang8922 8 ай бұрын
Wow this is superb
@goodshiro10
@goodshiro10 8 ай бұрын
that property : 1x the example use case : 10x THAT VISUAL CIRCLE FOR EXPLANATION : beyond infinity
@Woeden
@Woeden 22 күн бұрын
Clever, very well explained
@abhayprince
@abhayprince 7 ай бұрын
I didn't know about it. Going to try it right away
@NotKyleChicago
@NotKyleChicago 8 күн бұрын
I didn't realize you could do elliptical borders in specific corner like this.
@elcontrastador
@elcontrastador 3 ай бұрын
Stumbled across this…great tip.
@jp0678
@jp0678 8 ай бұрын
didn't know that, thanks!
@Lampe2020
@Lampe2020 5 ай бұрын
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!
@terablast
@terablast 6 ай бұрын
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
@soluschristus96
@soluschristus96 8 ай бұрын
An in-depth CSS course using such visuals as part of the material for study would make the learning process so much more enlightening ❤
@vitaliiverdiiev7272
@vitaliiverdiiev7272 14 күн бұрын
Yooooo, thank!
@Rkot_scholes
@Rkot_scholes 8 ай бұрын
Greater
@Sachin-at
@Sachin-at 4 ай бұрын
This dude blows my mind every time 🤯
@oluwarotimiajayi
@oluwarotimiajayi 6 ай бұрын
Kevin never fails to blooow my mind😮
@strategistaow3520
@strategistaow3520 5 ай бұрын
Oh i didn't know that thank you bro
@cedrictheveneau9141
@cedrictheveneau9141 4 ай бұрын
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
@hassamulhaq7762
@hassamulhaq7762 8 ай бұрын
Superb
@cedrichirschi7236
@cedrichirschi7236 8 ай бұрын
Nice, awesome content
@minkeymoo
@minkeymoo 3 ай бұрын
Holy shit thats cool
@juanpasten6077
@juanpasten6077 8 ай бұрын
Nice!
@ClaudioBernasconi
@ClaudioBernasconi 5 ай бұрын
Whenever I master another CSS level, another level appears. 😅
@mrgamerzyt3945
@mrgamerzyt3945 8 ай бұрын
I didn't knew we can do border-top-right-radius
@mrgamerzyt3945
@mrgamerzyt3945 8 ай бұрын
@@GammaDev. what the helllllll
@Lampe2020
@Lampe2020 5 ай бұрын
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.
@user-xj6fp8mc1o
@user-xj6fp8mc1o 8 ай бұрын
I've been looking for this feature for so long!!! Thx man
@arjunjayakumar4841
@arjunjayakumar4841 8 ай бұрын
Good info Kev
@JulienReszka
@JulienReszka 8 ай бұрын
Mind: blown
@TheBaberKhan
@TheBaberKhan 10 күн бұрын
How come this is not taught in any tutorial. This seems like a very interesting thing to know
@aram5642
@aram5642 8 ай бұрын
Yes, I knew it, I once won a bet that I could draw an egg using pure css!
@gollamadish
@gollamadish 8 ай бұрын
wait, is it possible for shorthand border-radius to have 8 values?
@KevinPowell
@KevinPowell 8 ай бұрын
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 8 ай бұрын
Oh, i was missing the slash, ​@@KevinPowell! I could only get 4...
@Gasshette
@Gasshette 8 ай бұрын
That's a godlike short every developper should see haha thanks for the free knowledge !
@ronaldc8634
@ronaldc8634 8 ай бұрын
awesome
@JoshuaClancy12
@JoshuaClancy12 8 ай бұрын
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.
@diegof9399
@diegof9399 Ай бұрын
I already knew it was possible, but never grasped it 100%. The explanation was awesome
@SuswagatamRong
@SuswagatamRong 4 ай бұрын
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.
@Sinke_100
@Sinke_100 8 ай бұрын
👑 of css 🙂
@satwiksv2749
@satwiksv2749 8 ай бұрын
Very helpful thank you
@crowlsyong
@crowlsyong 8 ай бұрын
woah. legendary. thank you
@HeyJes
@HeyJes 8 ай бұрын
Great explanation! I knew about this but I always sort of thought the syntax was confusing.
@patrykkuniczak2516
@patrykkuniczak2516 8 ай бұрын
You're amazing ❤
@ramzyabdul185
@ramzyabdul185 3 ай бұрын
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 ❤❤
@JDalmasca
@JDalmasca 8 ай бұрын
Excellent illustration!
@tarasshevchuk8477
@tarasshevchuk8477 7 ай бұрын
Nice
@makl-the-oracle
@makl-the-oracle 4 ай бұрын
gold
@ColinRichardson
@ColinRichardson 5 ай бұрын
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.
@penguinxed
@penguinxed 8 ай бұрын
wow wth i never knew this, awesome stuff mr Kevin
@DasBauer
@DasBauer 8 ай бұрын
I never looked into border-radius' definition. I thought one value per corner was the way. Great video, very helpful.
@unhhgcrxexhjvuvujchcrzwzwz7956
@unhhgcrxexhjvuvujchcrzwzwz7956 6 ай бұрын
Yaa… definitely knew that lol
@OnePieceWonPeace
@OnePieceWonPeace 2 ай бұрын
How do you create beveled/clipped corners?
@srglmr
@srglmr 8 ай бұрын
How to make squircle in css ?
@cheskoxd
@cheskoxd 8 ай бұрын
Great information ❤
@pegak
@pegak 8 ай бұрын
Does that mean we can have squircles with pure CSS? :O
@kellychristus2496
@kellychristus2496 8 ай бұрын
Great information!
@angelsv
@angelsv 8 ай бұрын
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 😢
@josegamarra3532
@josegamarra3532 4 ай бұрын
What!
@ShaharHarshuv
@ShaharHarshuv 8 ай бұрын
I wonder what's the real word usecase for it
@Learner156
@Learner156 8 ай бұрын
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
@ThomasGHenry
@ThomasGHenry Ай бұрын
Huge!
@afzalhamdulay
@afzalhamdulay 8 ай бұрын
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!😂😂😂
@abhishekrawat6040
@abhishekrawat6040 7 ай бұрын
😮🤯
@BazieleSaah
@BazieleSaah 5 ай бұрын
Where does this guy learn about these things
@maxharris748
@maxharris748 26 күн бұрын
Witchcraft
@Earth_Being
@Earth_Being 8 ай бұрын
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.
@JaimeBIDtravel
@JaimeBIDtravel 8 ай бұрын
Would it be possible to kind of make a vignette speech bubble with this property?
@raviel498
@raviel498 8 ай бұрын
😮
@tiriana2
@tiriana2 3 ай бұрын
And now you can spend 3h choosing the right values and call it "work"
@hamdaniash-siddiq5021
@hamdaniash-siddiq5021 Ай бұрын
why dont anybody tell us earlier for such an important thing..
@The3er0
@The3er0 8 ай бұрын
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 8 ай бұрын
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.
@snich1950
@snich1950 8 ай бұрын
How to use that tool that shows a colored green transparent ellipse?
@bechirzouaoui5821
@bechirzouaoui5821 6 ай бұрын
Qss support this ? Or only css
@chrisberry6575
@chrisberry6575 7 ай бұрын
WHO REALLY KNOWS CSS????
@TheCray100
@TheCray100 2 ай бұрын
My cat likes this vid. She slapped you a high five mid way in. 😂
@Mempler
@Mempler 8 ай бұрын
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 8 ай бұрын
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 8 ай бұрын
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 8 ай бұрын
​@@theseanglehappens lol
@Taramushi
@Taramushi 8 ай бұрын
すごい!
@AnioryX
@AnioryX 7 ай бұрын
Font name ?? Used in vs editor?
@Animefan-sn1gu
@Animefan-sn1gu 8 ай бұрын
why are u using px
@hikari1690
@hikari1690 8 ай бұрын
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 8 ай бұрын
It's in the documentation, but most people don't read that 😅. A lot forget too, since you don't use it often
@tinongnjong1305
@tinongnjong1305 8 ай бұрын
Didn’t know lol 😂
@yassinesafraoui
@yassinesafraoui 8 ай бұрын
Oh that's pretty neat! But I wonder where would it be useful 🤔
@KevinPowell
@KevinPowell 8 ай бұрын
You can make interesting blob shapes by doing it on all sides, there are a couple of good generators out there to help too
@encilaj1444
@encilaj1444 8 ай бұрын
crazy haha
@AYA-GAMING_SHORTS
@AYA-GAMING_SHORTS 4 ай бұрын
Op op op
@allenpaulson8345
@allenpaulson8345 8 ай бұрын
How is the browser support for this
@emmanuelo1177
@emmanuelo1177 8 ай бұрын
Seriously??? You expect Kevin to answer this when you could just check w3schools or mdn.
@KevinPowell
@KevinPowell 8 ай бұрын
if it supports border-radius, it supports this :)
@sunofabeach9424
@sunofabeach9424 6 ай бұрын
what the fuck is that language
@ahmad-murery
@ahmad-murery 8 ай бұрын
I wish there is a negative border radius
@darthtorus9341
@darthtorus9341 8 ай бұрын
So like a concave corner?
@KevinPowell
@KevinPowell 8 ай бұрын
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 8 ай бұрын
@@KevinPowell Nice, thanks for the info Kevin!
@ahmad-murery
@ahmad-murery 8 ай бұрын
@@darthtorus9341 Exactly
@emjizone
@emjizone 7 ай бұрын
Another "did you know?" video again… Read the fu##### documentation ! ;p
@AngryApple
@AngryApple 7 ай бұрын
I want a border-squircle-radius 🥲
@MaximM999
@MaximM999 6 ай бұрын
Omagad
Avoid these 5 beginner CSS mistakes
21:38
Kevin Powell
Рет қаралды 70 М.
Top 10 CSS One Liners That Will Blow Your Mind
13:34
developedbyed
Рет қаралды 910 М.
Super gymnastics 😍🫣
00:15
Lexa_Merin
Рет қаралды 102 МЛН
Они убрались очень быстро!
00:40
Аришнев
Рет қаралды 3,4 МЛН
Luck Decides My Future Again 🍀🍀🍀 #katebrush #shorts
00:19
Kate Brush
Рет қаралды 2,5 МЛН
Stupid Barry Find Mellstroy in Escape From Prison Challenge
00:29
Garri Creative
Рет қаралды 19 МЛН
Learn CSS Positioning Quickly With A Real World Example
8:32
Slaying The Dragon
Рет қаралды 592 М.
This Should Have Been In CSS Years Ago
1:57
Dev Dive In
Рет қаралды 1,8 М.
A flexbox trick to improve text wrapping
5:02
Kevin Powell
Рет қаралды 173 М.
Code faster with these VS Code shortcuts
8:44
Coder Coder
Рет қаралды 315 М.
CSS Tips And Tricks I Wish I Knew Before
12:12
Lama Dev
Рет қаралды 434 М.
Generics: The most intimidating TypeScript feature
18:19
Matt Pocock
Рет қаралды 163 М.
Using CSS custom properties like this is a waste
16:12
Kevin Powell
Рет қаралды 159 М.
Python's 5 Worst Features
19:44
Indently
Рет қаралды 95 М.
We can now transition to and from display: none
21:20
Kevin Powell
Рет қаралды 68 М.
Super gymnastics 😍🫣
00:15
Lexa_Merin
Рет қаралды 102 МЛН