.container {
max-width: 1170px;
margin: 0 auto;
}
.row::after {
display: block;
content: "";
clear: both;
}
.col {
float: left;
}
.col-6 {
width: 50%;
}
.content {
font-size: 3em;
text-align: center;
color: #fff;
background-color: green;
width: 100%;
height: 300px
}
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<div class="row">
<div class="col col-6">
<div class="content">Half of container width</div>
</div>
<div class="col col-6">
<div class="content green">The remaining part of the viewport horizontally
</div>
</div>
</div>
</div>
</body>
</html>
I am aiming to create an arrangement where one col-6 takes up the first half of the container's width and the other col-6 occupies the remaining space extending to the end of the viewport. If necessary, I plan to add an image there using absolute positioning. I hope this explanation is sufficient.