As I put a text on a responsive image, when the image adapts to a smaller size the text also
my code is as follows:
/* Container holding the image and the text */
.container {
display: block;
position: relative;
}
/* Bottom right text */
.text-block {
display: block;
position: absolute;
bottom: 50px;
right:100px;
padding-left: 20px;
padding-right: 20px;
}
h10 {
color: black;
font: bold 16px/36px Helvetica, Sans-Serif;
letter-spacing: -1px;
}
pp {
color: white;
font: bold 24px/45px Helvetica, Sans-Serif;
letter-spacing: -1px;
}
/* CSS Document */
<div class="container">
<a href="enviar.php" class="image featured"><img src="images/cualquiera.jpg alt="Norway" style="width:100%;" /></a>
<div class="text-block">
<h10>texto que quiero que se mueva</h10>
</div>
</div>