'Media query not changing margin
I have css that should make the div margin go to 10% if the screen is 1920px wide or less, and 20% margin-left if the screen width is any higher. For some reason though, the media query is not working. Here is the code for it. Thanks!
.about-me-header{
width: 200px;
margin-left: 20%;
height: 20%;
}
@media only screen and (max-width:1920){
.about-me-header{
margin-left: 10%;
}
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
