1
I’m making a bunch of cards, and when the screen is big they look normal, but when I cut them down they get small. I wanted to create a scroll bar so that when it was on smaller screens, the size of the cards would be the same, but with the scroll bar. I tried using the overflow-x
to try to stay responsive, but did not succeed. In case I want a horizontal scrollbar.
My code:
<!DOCTYPE html>
<html>
<head>
<title>Exemplo</title>
<meta charset="utf-8">
<style type="text/css">
.conteudo{
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
width: 100%;
}
.card{
background-color: #f1f1f1;
width: 250px;
margin: 10px;
height: 200px;
text-align: center;
}
}
</style>
</head>
<body>
<div style="overflow-x: auto">
<div class="conteudo">
<div class="card">1</div>
<div class="card">2</div>
<div class="card">3</div>
<div class="card">4</div>
<div class="card">5</div>
</div>
</div>
</body>
Dude I wanted horizontal bar, but vlw, you know how to put horizontal
– Thor