Margin-right of <div> in <div> in flexbox layout - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Flex Container

Description

Margin-right of <div> in <div> in flexbox layout

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style>

body {<!--   w  w  w .  ja  va 2  s. c  om-->
   display: flex;
   align-items: center;
   justify-content: space-around;
}
.outer {
   height: 600px;
   overflow: scroll;
   border: 1px solid red;
}
.inner {
   display: inline-block;
   min-width: 2500px;
   min-height: 2500px;
   margin: 12.5px;
   background-color: green;
}


      </style> 
 </head> 
 <body> 
  <div class="outer"> 
   <div class="inner"></div> 
  </div>  
 </body>
</html>

Related Tutorials