The most basic flexbox pattern: getting a few boxes to stretch and fill the full width of their parent element. All you need to do is to set display: flex
on the container, and a flex-grow
value above 0
on the children.
demo
- HTML, CSS
- Includes: index.html and CSS file