<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head><title>flexbox | overflow</title> <link href="http://opera.com" rel="author" title="Opera Software" /> <link href="http://www.w3.org/TR/css-flexbox-1/#propdef-justify-content" rel="help" /> <link href="reference/flexbox_empty-ref.xht" rel="match" /> <style> div { background: red; height: 4em; width: 0; overflow: hidden; display: flex; justify-content: space-around; } p {width: 200px;} </style> </head><body><div> <p>one two three four</p> <p>damer</p> <p>damer</p> <p>damer</p> <p>damer</p> </div> </body></html>