HTML CSS examples for CSS Layout:Flex Container
Margin-right of <div> in <div> in flexbox layout
<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>