Questions tagged [box-sizing]

a CSS3 Box Model property that specifies whether or not an element's border and padding are included in its height and width

This CSS3 Box Model property specifies whether or not an element's border and padding should be included when determining its height and width.

The two possible values are content-box and border-box.

content-box

The element's border, padding, and margin are not included when determining its height and width. This is the default value and the behavior specified in CSS2.1.

  • height = content height
  • width = content width

border-box

The element's height and width include its border and padding.

  • height = border + padding + content height
  • width = border + padding + content width

Resources

Related Tags

62 questions
-2
votes
1 answer

Font awesome icon and input field borders overlap visible on mobile

On the login page there are font awesome icons in front of the input fields. In order to have a nice box border around both, I applied border property for both the icon and input field and removed the border-right and border-left respectively, so…
Rahul
  • 702
  • 2
  • 8
  • 26
-3
votes
1 answer

Microsoft Edge does not support Box sizing: border-box?

I have a div container with height and width specified [say, width=280px & height=30px]. The div contains a textbox [input type=text] with css attributes: box-sizing=border-box & width=100% I've placed two div containers adjacent and expect that,…
1 2 3 4
5