<!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 | 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.xht" 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>