0
Good evening, I would like to know how to control the order of image overlay and text in html, in the script below the text is above the image, as I can leave the text below the image?
<html>
<head>
<title>Texto sobre imagem</title>
<style>
#imagem {
width: 200px;
height 200px;
}
#texto {
position: absolute;
margin-top: -40px;
}
</style>
</head>
<body>
<img id="imagem" src="http://mdemulher.abril.com.br/sites/mdemulher/files/styles/retangular_horizontal_2/public/core/salada.jpg?itok=8ViA5vi2"/>
<div id="texto">Texto que fica sobre a imagem</div>
</body>
</html>
Cool, solved the problem, thank you Vitor Andre!!!
– Vitor Marques Lourenço