title: How to make the width of items 100%, 50% or 33% depending on quantity
body: <p>I have a container that sometimes has two items or three or one. If there is one item, I want each container (there is only one) to have a width of 100%. If there are two items, I want each container to have a width of 50%. If there are three items, I want each container to have a width of 33%. The number of items is not known before hand but after a script executes. How can I accomplish the above in css?</p>