# Padding + border?

**URL:** <https://www.phphelp.com/t/padding-border/30227>\
**Category:** HTML & CSS\
**Created:** [October 18, 2019, 10:44am UTC](https://www.phphelp.com/t/padding-border/30227 "2019-10-18T10:44:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![phpn0w](https://www.phphelp.com/letter_avatar_proxy/v4/letter/p/ea5d25/32.png) [@phpn0w](https://www.phphelp.com/u/phpn0w)\
**Post date:** [October 18, 2019, 10:44am UTC](https://www.phphelp.com/t/padding-border/30227/1 "2019-10-18T10:44:32Z")

</div>

Hello,

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

---

<div class="post-metadata">

**Author:** ![whispers](https://www.phphelp.com/letter_avatar_proxy/v4/letter/w/858c86/32.png) [@whispers](https://www.phphelp.com/u/whispers)\
**Post date:** [November 4, 2019, 2:00am UTC](https://www.phphelp.com/t/padding-border/30227/2 "2019-11-04T02:00:54Z")

</div>

> [@phpn0w](#):
>
> I want to have a border on the bottom that does not stick out on the padding area

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.
