I want to display two different background images per device, have a code, but it doesn't work properly...
where is a bug?
where is a bug?
Code:
@media (max-width: 720px) { body { margin: 0; background-color: #ff0000; background-image: url('img/bg1.jpg'); background-repeat: no-repeat; background-position: top left; background-size: 100% auto; } } @media (min-width: 721px) { body { margin: 0; background-color: #303441; background-image: url('img/bg2.jpg'); background-repeat: no-repeat; background-position: top left; background-size: 100% auto; } }
Comment