0
.a-right {
padding: 2%;
float: right;
width: 30%;
margin: 0;
}
.a-center {
padding: 2%;
width: 50%;
margin-left: 5%;
}
@media screen and (max-width: 600px){
ul.topnav li.right,
ul.topnav li {float: none;}
.a-center {width: 85%}
.a-right {float: none; width: 95%}
body{
float: none;
}
#globo{
width: 100%;
margin-left: 0;
}
ul.topnav li a.active {margin-left: 0;}
}
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="_css/estilo.css"/>
</head>
<body>
<div class="a-right">
<p>You can use a comma-separated list to apply styles when the user's device matches any one of various media types, features, or states. For instance, the following rule will apply its styles if the user's device has either a minimum height of 680px or is a screen device in portrait mode:</p>
<p>You can use a comma-separated list to apply styles when the user's device matches any one of various media types, features, or states. For instance, the following rule will apply its styles if the user's device has either a minimum height of 680px or is a screen device in portrait mode:</p>
</div>
<div class="a-center">
<p>You can use a comma-separated list to apply styles when the user's device matches any one of various media types, features, or states. For instance, the following rule will apply its styles if the user's device has either a minimum height of 680px or is a screen device in portrait mode:</p>
<p>You can use a comma-separated list to apply styles when the user's device matches any one of various media types, features, or states. For instance, the following rule will apply its styles if the user's device has either a minimum height of 680px or is a screen device in portrait mode:</p>
</div>
There is how I reverse the positions of Divs when the site is accessed by mobile?
Left to right or right to play down?
– Guilherme Nascimento
like, the way it is, it’s a div on the left, and the other on the right, when I enter by cell phone in it, it’s one below the other, in the order <div class="a-right"> and below <div class="a-center"> stood on top of the "a-right". Sorry, I really wasn’t clear..
– Fabio
If reversing the orders and applying float to a-center should work, please test this: https://answall.com/a/243714/3635
– Guilherme Nascimento