CSS padding effecting width & height of component

73 views Asked by At

How can I give fixed width & height of button or label even after applying the big padding.

I tried with box-sizing:content-box. but its not working.

Example code

Thanks in advance.

1

There are 1 answers

1
Smuuf On

Aren't you looking for box-sizing: border-box instead?

I think you are.