<!DOCTYPE html> <title>flexbox | nested flexcontainer</title> <link rel="author" href="http://opera.com" title="Opera Software"> <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-containers"> <link rel="match" href="flexbox_generated-flex-ref.html"> <style> div { background: #3366cc; border: 1px solid black; display: flex; } p { background: yellow; margin: 1em; width: 200px; height: 2em; display: flex; } </style> <div> <p>xxx</p> </div>