To create CSS flex columns with equal width except for the last one, you can use this combination of flexbox properties.
Source code viewer
.container { display: flex; } .container > div { flex: 1; } .container > div:last-child { /* Replace auto with a fixed width. */ flex: 0 0 auto; }Programming Language: CSS