Padding + border?


I have a div with padding. I want to have a border on the bottom that does not stick out on the padding area. I dont know how to do this. I have tried with box-sizing bit it is not working

What does this mean?

A border is the outline of the element… if you have padding (which is internal spacing) the border will always be at the ‘end’ (bottom) of the padding value.

Sponsor our Newsletter | Privacy Policy | Terms of Service