I'm having difficulty putting a 100% image on the mobile screen, which has a margin in the previous DIV, I've tried changing the position, overflow and float but I can not 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 red div over the margin used in the blue div.