0

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.

Dyapa Srikanth
  • 1,231
  • 2
  • 22
  • 60

1 Answers1

1

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

I think you are.

Smuuf
  • 6,339
  • 3
  • 23
  • 35
  • I tried border-box also, still it is increasing width of label & button. I want the button & label size should be same as initial(without padding) even after applying padding but content should go invisible if I apply big padding. – Dyapa Srikanth Sep 04 '13 at 10:13