1
In the first box I’m setting 6 inputs
, and wanted to know why my other boxes are keeping up with the size of my box that has the 6 inputs
.
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: initial;
width: 100%;
overflow-x: auto;
}
.card {
background-color: #f1f1f1;
min-width: 250px;
margin: 10px;
/*height: 200px;*/
text-align: center;
}
@media (min-width:1330px) {
.conteudo {
justify-content: initial;
}
}
</style>
</head>
<body>
<div>
<div class="conteudo">
<div class="card">
<input type="text">
<input type="text">
<input type="text">
<input type="text">
<input type="text">
<input type="text">
</div>
<div class="card">2</div>
<div class="card">3</div>
<div class="card">4</div>
<div class="card">5</div>
</div>
</div>
</body>
</html>
But I didn’t set the height in my card class, but how would I solve that problem ?
– Thor
defining different names for class and applying width and height sizes with different values...
– Angelo Soares