February 6, 201313 yr Im trying to make my navigation a bit responsive by making font smaller when on tablet/phone, can someone tell me why isnt this working: #navbar ul { margin: 0; padding: 5px; list-style-type: none; text-align:left; background-color: #000; font-family: 'Jockey One', sans-serif; font-size:18px; } #navbar ul li { display: inline; } #navbar ul li a { text-decoration: none; padding: .2em 1em; color: #fff; background-color: #000; } #navbar ul li a:hover { color: #F00; background-color: none; } @media only screen and (min-width: 768px) and (max-width: 959px) { #navbar ul {font-size:10px;} } @media only screen and (max-width: 767px) { #navbar ul {font-size:10px;} } @media only screen and (min-width: 480px) and (max-width: 767px) { #navbar ul {font-size:10px;} } why not working?
February 7, 201313 yr I just copied the code and it all works fine for me. Have you checked to see if the HTML is correct and the CSS is linked too properly? Edited February 7, 201313 yr by Mr Ben
Create an account or sign in to comment