JSFiddle - React, Tailwind, and code Playground
Image Block
by Ttt Yyy
HTML
<!DOCTYPE HTML>
<html>
<head></head>
<body>
<div class='container'>
<div class="leftCol">
Area
<div>
Item 1
</div>
</div>
<div class='rightCol'>
Content
<div>
Item 1
</div>
<div>
Item 1
</div>
<div>
Item 1
</div>
<div>
Item 1
</div>
<div>
Item 1
</div>
<div>
Item 1
</div>
</div>
</div>
</body>
</html>
CSS
/* flexbox */
.container {
display: flex;
flex-direction: row;
}
.leftCol {
border: 1px solid red;
/* position: absolute; */
}
.rightCol {
border: 1px solid blue;
flex-grow: 1;
/* overflow: auto; */
}
/* float with wrap around...*/
/* .container {
}
.leftCol {
border: 1px solid red;
float: left;
width: 100px;
}
.rightCol {
border: 1px solid blue;
margin-left:100px;
overflow: hidden;
} */