<!DOCTYPE html> | |
<title>flexbox | overflow</title> | |
<link rel="author" href="http://opera.com" title="Opera Software"> | |
<link rel="help" | |
href="http://www.w3.org/TR/css-flexbox-1/#justify-content-property"> | |
<link rel="match" href="../reference/blank.html"> | |
<style> | |
div { | |
background: red; | |
height: 4em; | |
width: 0; | |
overflow: hidden; | |
display: flex; | |
justify-content: space-around; | |
} | |
p {width: 200px;} | |
</style> | |
<div> | |
<p>one two three four</p> | |
<p>filler</p> | |
<p>filler</p> | |
<p>filler</p> | |
<p>filler</p> | |
</div> |