I made an HTML page and a CSS file. I created media queries to display this page correctly on different devices.
Everything is fine except on a Samsung A51 (android). This mobile interpret the CSS media query for resolution > 1000 pixels rather than interpret the media query for resolution = 414px.
As you can see on this website, Samsung A51 have a resolution 1080x2400 and 405PPI: https://phonesdata.com/fr/smartphones/samsung/galaxy-a51-5458463/#techspec
I don't understand why. However i clearly indicate the meta tag:
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
Here is the CSS interpreted:
h3 {
max-width: 70%;
text-align: center;
font-weight: 800;
color: #13A538;
margin: 5rem auto 1rem;
font-size: 2.5rem;
margin-bottom: 30px;
}
Here is the media querie that should be interpreted:
@media screen and (min-width: 414px) {
h3{
font-weight: 500;
/* color: #13A538; */
color: pink;
margin: 2rem auto 1rem;
font-size: 1.5rem;
}
EDIT: My break points:
@media screen and (max-width: 360px)
@media screen and (min-width: 414px)
@media (min-width: 576px)
@media (min-width: 768px)
@media (min-width: 992px)
@media (min-width: 1200px)
@Greg-- you think it's necessary to add you media querie ?