<!DOCTYPE html> <html><head><title>flexbox | inline</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_inline-ref.htm" rel="match"> <style> body {margin: 0;} div { background: yellow; margin-top: -20em; display: inline-flex; } </style> </head><body><div>HELLOWORLD</div> </body></html>