How to make a element expand or contract to its parent container?

The goal is to have the element expand to the size of its parent container, in this case a

, no matter how big or small that container may be.

The code: