JSFiddle - React, Tailwind, and code Playground
HTML
<title>TEST</title>
</head>
<body>
<!-- content -->
<div class="container">
<div class="float">
<img src="http://cache2.allpostersimages.com/p/LRG/27/2707/9P1ND00Z/poster/cobb-jodi-a-chinese-lotus-flower.jpg" alt=" " title=" ">
<img src="http://cache2.allpostersimages.com/p/LRG/27/2707/9P1ND00Z/poster/cobb-jodi-a-chinese-lotus-flower.jpg" alt=" " title=" ">
</div>
<div class="float3">
<img src="http://cache2.allpostersimages.com/p/LRG/27/2707/9P1ND00Z/poster/cobb-jodi-a-chinese-lotus-flower.jpg" alt=" " title=" ">
<img src="http://cache2.allpostersimages.com/p/LRG/27/2707/9P1ND00Z/poster/cobb-jodi-a-chinese-lotus-flower.jpg" alt=" " title=" ">
</div>
<div class="float2">
<img src="http://cache2.allpostersimages.com/p/LRG/27/2707/9P1ND00Z/poster/cobb-jodi-a-chinese-lotus-flower.jpg" alt=" " title=" ">
<img src="http://cache2.allpostersimages.com/p/LRG/27/2707/9P1ND00Z/poster/cobb-jodi-a-chinese-lotus-flower.jpg" alt=" " title=" ">
</div>
</div>
<!-- end content -->
</body>
</html>
CSS
body {
background-color: #ffffff;
}
.container {
margin: 0;
padding: 0;
}
#img-container {
margin: 50;
padding: 0;
}
div.float {
height: 200px;
width: 200px;
overflow-y: scroll;
overflow-x: hidden;
}
div.float2 {
height: 400px;
width: 100px;
overflow-y: scroll;
overflow-x: hidden;
}
div.float3 {
height: 100px;
width: 200px;
overflow-y: scroll;
overflow-x: hidden;
}
.float {
float: left;
padding: 0 0 0 0;
}
.float img {
display: block;
margin: 50px;
padding: 0px;
}
.float2 {
float: left;
padding: 0 0 0 0;
}
.float2 img {
display: block;
margin: 50px;
padding: 0px;
}
.float3 {
float: left;
padding: 0 0 0 0;
}
.float3 img {
display: block;
margin: 50px;
padding: 0px;
}