Struggling to make text and a button fit inside an image without losing responsiveness.
.dados {
bottom: 10px;
right: 0;
}
.text {
font-family: "Arial Bold", Arial;
font-weight: 700;
font-size: 22px;
color: #ffffff !important;
}
<!DOCTYPE html>
<html lang="pt-br">
<head>
<title>Teste</title>
<meta charset="UTF-8>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" type="text/css" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body>
<div class="container">
<div class="row mt-4">
<div class="col-4">
<div class="position-relative">
<img src="https://via.placeholder.com/300" alt="">
<div class="position-absolute dados">
<h3 class="text-right text">Tests?<br>Lorem ipsum dolor sit amet</h3>
<button class="btn btn-primary float-right">see details</button>
</div>
</div>
</div>
<div class="col-4">
<div class="position-relative">
<img src="https://via.placeholder.com/300" alt="">
<div class="position-absolute dados">
<h3 class="text-right text">Tests?<br>Lorem ipsum dolor sit amet</h3>
<button class="btn btn-primary float-right">see details</button>
</div>
</div>
</div>
<div class="col-4">
<div class="position-relative">
<img src="https://via.placeholder.com/300" alt="">
<div class="position-absolute dados">
<h3 class="text-right text">Tests?<br>Lorem ipsum dolor sit amet</h3>
<button class="btn btn-primary float-right">see details</button>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
Attempted setting the parent div as position relative and using position absolute for the content, but it didn't work.
Desire for the information to be located in the lower right corner of the image while maintaining responsiveness. Any suggestions?