I have componente1
and componente2
follow the example:
body {
margin: 0;
}
.componente1 {
width:250px;
float: left;
background-color: green;
height: 340px;
}
.componente2 {
width:250px;
height: 340px;
float:left ;
background-color: red;
}
@media only screen and (max-width: 601px) {
.componente1 {
margin-top: 345px;
}
.componente2 {
margin-top:-345px;
}
}
<div>
<div class="componente1">
</div>
<div class="componente2">
</div>
</div>
Goal and make componente2
above componente1
at resolution below% width%. This example works in IE and Chrome, however in Firefox it gets 600px
overwriting 30px
.
Remembering that the answer has to be compatible with the main navigation vehicles.