Last post Dec 20, 2016 09:41 AM by Cathy Zou
Dec 19, 2016 10:24 PM|gunderj|LINK
Is there a way to have a border that does increase the size of its div?
If the div height is 16px and border as border: solid 2px black;, I want the div height to remain at 16px and not increase to 18px (which occurs due to the border).
My requirement will not allow changing the div height to 14px.
Thanks for any thought son this.
Dec 20, 2016 01:37 AM|bruce (sqlwork.com)|LINK
Dec 20, 2016 09:41 AM|Cathy Zou|LINK
For your problem, as brue said, you could set box-sizing for Div.
border: 10px solid blue;
Output In Chrome: