Do you make this mistake with border-radius? #css

Do you make this mistake with border-radius? #css

Kevin Powell

9 месяцев назад

181,601 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@tresvecesno7071
@tresvecesno7071 - 25.12.2023 22:01

There's a way to make that using variables

Ответить
@PossumMedic
@PossumMedic - 28.11.2023 22:49

My machinists cert is paying off! 😂

Ответить
@skaarl7681
@skaarl7681 - 28.11.2023 14:01

from Kevin to Kevin, tnx

Ответить
@RajatKumar-jc5nj
@RajatKumar-jc5nj - 27.11.2023 16:54

Sir Kevin is at it again, yet another video of me learning new things subconsciously.

Ответить
@yohendryy
@yohendryy - 27.11.2023 04:12

So sexy

Ответить
@armandvandermescht8430
@armandvandermescht8430 - 19.11.2023 13:27

@KevinPowell, is there a trick for doing something like this when the padding exceeds the outer radius. If I have say a 12px outer radius and my padding is 16px then the result would be -2px.

Ответить
@TheMotivatorYouNeed-uj1jx
@TheMotivatorYouNeed-uj1jx - 18.11.2023 03:54

it actually doesn't look better

Ответить
@fvandrade
@fvandrade - 17.11.2023 01:13

Na minha época tinha que ajustar no ps kkk

Ответить
@hunorfekete7413
@hunorfekete7413 - 07.11.2023 00:26

Sorry I'm a python programmer i have to comment this: ; eww i stepped in shit

Ответить
@DennisIvy
@DennisIvy - 04.11.2023 02:52

I was today years old when I realised this

Ответить
@somebody-17546
@somebody-17546 - 02.11.2023 20:44

You save my life <3

Ответить
@forevermarshmansur
@forevermarshmansur - 02.11.2023 19:14

Does it though?

Ответить
@DaMu24
@DaMu24 - 28.10.2023 07:33

Calc is your friend

Ответить
@kriteesridam7885
@kriteesridam7885 - 27.10.2023 11:01

🎉😂 you are superhero.

Ответить
@Edwardtonnn
@Edwardtonnn - 21.10.2023 18:30

Awesome 👍🏼

Ответить
@thisismyemail5296
@thisismyemail5296 - 18.10.2023 00:38

Kevin on the frontlines of design!

Ответить
@alexanderpaulmarinas6697
@alexanderpaulmarinas6697 - 15.10.2023 00:59

I see you've been at twitter

Ответить
@vedanth762
@vedanth762 - 11.10.2023 08:30

what if outer element doesnt have padding?

Ответить
@emmanueloyiboke
@emmanueloyiboke - 06.10.2023 13:08

How about making the parent div overflow: hidden; then giving just the parent div a border-radius.

Ответить
@CZghost
@CZghost - 30.09.2023 21:32

This is why the calc() function exists.

Ответить
@pulkitgandhi9545
@pulkitgandhi9545 - 26.09.2023 21:05

man bro is actually turning crappy style sheets to cascading style sheets

Ответить
@dgpreston5593
@dgpreston5593 - 26.09.2023 11:29

Important tip

Ответить
@adityakhaprelap
@adityakhaprelap - 20.09.2023 20:06

This is math, how can people don't understand math?

Ответить
@FlockofSmeagles
@FlockofSmeagles - 20.09.2023 19:47

I too, am a fan of geometry.

Ответить
@azeek
@azeek - 16.09.2023 01:48

Why not just give the radius to outer element only. This should fix, no ?

Ответить
@sirstegi
@sirstegi - 10.09.2023 13:50

what should i do if the border-radius is bigger than the padding? i have a card with 4px border-radius and the image in it has the same, padding is 15px on the card, it looks okay to be honest. Do I have to change it only if the border radius exceeds the padding, is this a right assumption?

Ответить
@vaibhavpal420
@vaibhavpal420 - 10.09.2023 00:35

I am new to the web development journey currently a student, guide me sir if you get some time.

Ответить
@ABTIX
@ABTIX - 05.09.2023 23:09

oh my god this is actually so so so useful, i've had many cases where i came across this issue and just eye balled it to fix it

Ответить
@jzea5605
@jzea5605 - 04.09.2023 21:14

Nice but how does this just work? Lol

Ответить
@pramudyaindra
@pramudyaindra - 04.09.2023 12:07

css engineer

Ответить
@penguinxed
@penguinxed - 04.09.2023 07:32

very helpful! thanks Mr Kevin

Ответить
@joshuafountain
@joshuafountain - 03.09.2023 07:59

Was literally having this issue a couple hours ago, thank you as always!

Ответить
@gamezone43
@gamezone43 - 02.09.2023 19:18

Can anyone tell how rem and em is working, is it responsive to its parent

Ответить
@bandekhoda7801
@bandekhoda7801 - 01.09.2023 16:01

Damnnnn i was literally having this problem right now!

Ответить
@hikari1690
@hikari1690 - 01.09.2023 14:34

Maths!

Ответить
@Supp1989
@Supp1989 - 01.09.2023 13:28

What if padding and border radius are both 1rem? It would be 0 or do I understand something wrong?

Ответить
@Jarrod0067
@Jarrod0067 - 01.09.2023 04:42

I'd just make it an outline and avoid all that

Ответить
@chi-mf1cx
@chi-mf1cx - 31.08.2023 17:18

thanks bro

Ответить
@sammy-dk8vh
@sammy-dk8vh - 31.08.2023 13:38

People so amazed at this… that’s why it’s important to learn the theory, the boring stuff, the technical stuff, they know how… so you don’t have to watch this sht

Ответить
@jonaspetersson523
@jonaspetersson523 - 31.08.2023 09:27

Would you say this is best handled with variables to avoid the risk of missing to update the "dependants"?

Ответить
@GenshinTactics
@GenshinTactics - 31.08.2023 08:24

...and what if I told you that I don’t like how both of these options are visually displayed? 🤣In both views they are look not enough naturally.

Ответить
@LokiDaFerret
@LokiDaFerret - 31.08.2023 05:08

Actually, the real problem is that CSS defines a border radius using the wrong units. The border radius really needs to define the size of an arc. Hmmm can I define a border radius of 5deg? I'll need to test that out.

Ответить
@xenos7323
@xenos7323 - 31.08.2023 00:23

Would it cause problems if you used a box-shadow instead to create the border?

Ответить
@NiceChange
@NiceChange - 30.08.2023 23:42

Thank you

Ответить
@heavensangel1862
@heavensangel1862 - 30.08.2023 23:15

@KevinPowell Do you know how to make a bot for telegram?

Ответить
@martinsndifon
@martinsndifon - 30.08.2023 21:09

The 🐐 at it again. Thank you Kevin

Ответить
@nathanielreeves_dev
@nathanielreeves_dev - 30.08.2023 20:49

What do you mean by minus the outer elements minus the padding? So if my div was 300px it would be 300px minus the padding? Confused by the wording.

Ответить
@astrotmc7001
@astrotmc7001 - 30.08.2023 19:48

Hey Kevin,
I am still not good at listening and understanding in English, could you please tell me in writing what you are trying to do and what the trick is?

Ответить
@anonymouspanda7821
@anonymouspanda7821 - 30.08.2023 19:41

Hey Kevin,
I'm applying to a web programming and development course for next year and want to thank you for all your shorts and videos as they have helped tremendously on my path towards my career.

Ответить
@goodshiro10
@goodshiro10 - 30.08.2023 18:52

a note from me, a noob:
unless the padding is vertically and horizontally same, use variables to organize code

don't scold me if im wrong😅

Ответить