Want to be able to
set the width of a container element in an HTML element arbitrarily
given X subelements in the container, distribute those subelements evenly within the container
like so:
Would like to know how to do this both in vanilla CSS and also in Stylus
Use flexbox:
.container{
display:flex;
justify-content:space-between;
}
You can use space-between or space-around.