HTML CSS examples for CSS Layout:Flex Container
Get a bordered image to autofit a flexbox div
<html> <head></head> <body> <div id="outer"> <div id="top"> <div id="first"> First <!--from www . j av a2s . co m--> </div> <div id="second"> <div id="vcenter"> <img src="https://www.java2s.com/style/demo/Google-Chrome.png"> </div> </div> <div id="third"> Third </div> </div> <div id="bottom"> Bottom </div> </div> </body> </html>