Get a bordered image to autofit a flexbox div - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Flex Container

Description

Get a bordered image to autofit a flexbox div

Demo Code

ResultView the demo in separate window

<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>

Related Tutorials