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