Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 67527

Facing some problem with css @media query

$
0
0

It is working fine when I'm applying it to body color, or changing font-size but when it comes to make element float or flex-direction, it does not respond at all. Tried in every way possible just not sure what's not working here: please do check the code , I think syntax is proper because it is giving me result as mentioned.


.navbar {
    background-color: #333;
    overflow: hidden;
    display: flex;
}

.navbar a  {  
    text-decoration: none;
    color: white;
    padding: 24px;
    display: block;
    text-align: center;
}

@media screen and (max-width:600px) {
    .navbar a {
      flex-direction: column;
   }
}

Viewing all articles
Browse latest Browse all 67527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>