How to align boxes in horizontal using css

Can anybody tell me how to align these boxes in horizontal. I use loop and getting input using rending url as you can see in screenshot.

Screenshot.

I don't know what your HTML and CSS is, but you can use flex to put them horizontally. If you look at the example below, i gave my box container a display of flex to make them horizontal. You can also use flex-direction: row; to make sure it stays horizontal using flex. If there's more to this problem please tell me!

html, body {
width: 100%;
height: 100%;
}

.box {
width: 100px;
height: 80px;
background-color: green;
}

.box_container {
/*Making it horizontal*/
display: flex;
gap: 10%;
}
<html>
<body>
<div class="box_container">
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
</div>
</body>
<html>

Back to Top