I would like to make the tea cups and the text under each one overlap each other in mobile format and leave it as it is in computer format, can you help me please? this is on computer and this is on mobile I would like to do something like this on mobile
HTML :
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="style.css">
<body>
<div class="selection">
<div class="mate-florale">
<a href="https://o-mate.fr/products/mate-hibiscus-purple-mate">
<img src="https://imgur.com/vwQHX9K.png">
</a>
<div class="text-mate-florale">
<h3 text-align="justify-content">Maté florale</h3>
</div>
</div>
<div class="mate-agrumes">
<a href="https://o-mate.fr/products/mate-energisant-morning-boost">
<img src="https://imgur.com/f079TDf.png">
</a>
<div class="text-mate-agrumes">
<h3 text-align="justify-content">Maté agrumes</h3>
</div>
</div>
<div class="mate-fruitee">
<a href="https://o-mate.fr/products/mate-fruits-rouges-fruity-mate">
<img src="https://imgur.com/vQvNboK.png">
</a>
<div class="text-mate-fruitee">
<h3 text-align="justify-content">Maté fruitée</h3>
</div>
</div>
</div>
</body>
</head>
CSS :
img {
width: 200px;
margin: 30px;
padding: center;
}
.selection {
display: flex;
justify-content: center;
align-items: center;
margin: 0 auto;
padding: 0;
}
I clearly don't know what i am supposed to do, that's why i ask for your help. Thank you !