Flexbox max-width and overflow with wrap - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Flex Wrap

Description

Flexbox max-width and overflow with wrap

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style>
.d1 {<!--from   w  ww  . j a v  a 2s  .c o  m-->
   color:Chartreuse;
   background:blue;
   display:flex;
   flex-flow:column wrap;
   justify-content:center;
   max-width:501px;
}
</style> 
 </head> 
 <body> 
  <div class="d1">
    A Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test B 
  </div>  
 </body>
</html>

Related Tutorials