css column expand to fit area
i have:
how can i make the span expand to fit the area given.
*div is inside another element with a width.
6 Replies
also, i might want to add more buttons around the span
If you’re using flex, you could give the span a flex grow:1
Or control it all with a grid-template 😄
grid-template-columns: auto 1fr auto;
I did some kinda fun tests with this here
https://codepen.io/b1mind/pen/dyzJbzy?editors=0110
Grid can often times give you much more flexibility than flex 🥁
But also its going to want to fill space not shrink children by default
exactly like #4
but
btn span btn btn
and the span expands