I have a few divs aligned horizontally. How do I make the spacing between them automatic so that if I resize the screen or add another div, there will be equal spacing between d
Flexbox can do that https://jsfiddle.net/2Lzo9vfc/210/
HTML
Box Box Box
CSS
.content { display: -webkit-flex; display: flex; -webkit-justify-content: space-around; justify-content: space-around; width: 100%; } .box { background: black; padding: 25px; color: white; }