I do want to develop a POS system layout based on this image.
The entire layout should fit into the display height.
The overflow of the item list should be scrollable.
Right side two boxes should take 50% of the display height and the first box should have the scrolling functionality.
This is what I have done so far. How do I achieve this using CSS?
body{
min-height: 100vh;
background-color:darkgray;
margin:0
}
.container{
display: flex;
background-color:green;
height:'100%';
}
.items-list{
background-color:burlywood;
flex:3
}
.order-details{
background-color:coral;
flex: 1;
}
.display-total{
background-color:blueviolet
}
.item{
background-color:white;
padding: 1rem;
border:1px solid black;
margin-left: 1rem;
margin-right: 1rem;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="container">
<div class="items-list">
<p class="item">item 1</p>
<p class="item">item 2</p>
<p class="item">item 3</p>
<p class="item">item 4</p>
<p class="item">item 5</p>
<p class="item">item 6</p>
<p class="item">item 7</p>
</div>
<div class="order-details">
<div class="cart-items">
<p class="item">item 1</p>
</div>
<div class="display-total">Total</div>
</div>
</div>
</body>
</html>
