I have two div one with a yellow background and one with a red background, the red background should be seen in a resolution greater than 800px and the yellow in the resolution less than or equal to 800px, the red div works fine but the yellow one does not it is visualized at the moment of seeing it on a cell phone or shortening the width of the browser I am using mozilla firefox
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
@media screen and (max-width:800px)
{
.menu1
{
display:block;
}
.menu2
{
display:none;
}
}
</style>
</head>
<body>
<div class='menu1' style='display:none;background:#FFFF00'>
menu_celular
</div>
<div class='menu2' style='background:#FF0000'>
menu_pc
</div>
</body>
</html>