# 5 Ways to Make a Div Fill Up the Remaining Width

## How can you expand a div to take the remaining width?

There are multiple ways: You can do it with Tables (okay, that’s not actually a div, but you could do it with div’s by setting the containers property to table-cell and the inner property to table-row or something like that), you could do it with margins, with overflow or with flex box.

## JSfiddle of the Code

https://jsfiddle.net/2ahnru0c/