2
Good people, I would like to make the div expand by clicking on it, and the other Divs 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>
I understood what you did, but how would it look with css?
– Chris
You can assign your classes to the above example.
– Mike Otharan
Thank you man, although I did not use your code because I managed to do otherwise, but msm so thank you tmj :D
– Chris