0
I’m having difficulty putting a 100% image on the mobile screen, which has a margin on the previous DIV, I’ve tried to change the position, overflow and float but I can’t get past this margin. follows an example
.teste{
margin: 20px auto;
width: 1000px;
height: 300px;
background-color: blue;
text-align: center;
}
.teste1{
background-color: red;
text-align: center;
width: 1200px;
height: 200px;
}
<!DOCTYPE html>
<html>
<head>
<title>teste</title>
<link rel="stylesheet" type="text/css" href="estilo.css">
</head>
<body>
<div class="teste">
<div class="teste1">
</div>
<div class="teste2">
</div>
</div>
</body>
</html>
in case it would exceed the div in red over the margin used in the blue div.
Where would the image be?
– Sam