Question: I can’t get `padding-bottom` to work when I use `overflow-y: auto` on a box. I use Firefox.

```css
#container {
  padding: 3em;
  overflow-x: hidden;
  overflow-y: auto;
  width: 300px;
  height: 300px;
  background: red;
}

#some_info {
  height: 900px;
  background: #000;
}
```

```html
<div id="container">
  <div id="some_info"></div>
</div>
```

See the [JSFiddle](https://jsfiddle.net/rwgZu/).

Answer: 
One more solution without extra DIVs.

```
#container:after {
  content: "";
  display: block;
  height: 50px;
  width: 100%;
}

```

Working in FF, Chrome, IE8-10.
It's not only with bottom padding. Right padding/border/spacing is also ignored (you can't see it in your example because it has no content, and the width is not scrolling)

All the answers above fail in chrome 43, generating up to 3 scrollbars! or if the content overflows #some\_info.

Example: <http://jsfiddle.net/LwujL3ad/>

If it worked for you, it's probably because the content was not as wide as the scrolling element, or fixed sized.

**The right solution is:**

Set **#some info** to display:table, and add padding or border to it, not to the scrolling container.

```
#container {
    overflow: scroll;
    width: 300px;
    height: 300px;
    background: red;
    padding-bottom:0;
}

    #some_info {
    display:table;
    border: solid 3em red;
    height: 900px;
    background: #000;
    margin-bottom:3em;
    color: white;
}

```

DEMO: <http://jsfiddle.net/juh7802x/>

The only element that doesn't fail, and respects ANY border and padding you add in there as separator is a TABLE. 

I tried, and no matter if it's the next direct child or it's nested many items deep, any non-content styling will NOT expand to wrap the content, and will stay 100% width of the parent. Which is nonsense, because having content BIGGER than the parent is EXACTLY the scenario in which a scrolling div is required!

For a dynamic solution (both the container and the content) set the container of the elements inside the scrolling container to display:table.