Well, I would like to make the div expand by clicking on it, and the other divs would decrease, vice versa with the others
*{
margin: 0;
padding: 0;
}
.divsCards{
position: relative;
width: 420px;
height: 480px;
left: 45px;
top: 25px;
background-color: blueviolet;
}
.card{
position: relative;
width: 420px;
height: 96px;
}
.card1{
background-color: #feca57;
}
.card2{
background-color: #0abde3;
}
.card3{
background-color: #10ac84;
}
.card4{
background-color: #54a0ff;
}
.card5{
background-color: #723eda;
}
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/styleCardsRotinas.css">
<title></title>
</head>
<body>
<div class="divsCards">
<div class="card card1"></div>
<div class="card card2"></div>
<div class="card card3"></div>
<div class="card card4"></div>
<div class="card card5"></div>
</div>
</body>
</html>