<div class="fondo"></div>
.fondo {
  background: red;
  width: 100%;
  height: 50px;
}

@media(max-width: 800px) {
  .fondo {
    background: blue;
  }  
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.