I am trying to do a media query to hide some text when i apply a class due to making it responsive, i normally use foundation but i need a custom media query.
It seems to not be applying.
@media only screen and (min-width: 768px) and (max-width: 992px) {
.hideMediaQuery{display:none !important;}
}
Here is my class i am trying to apply it to:
<div class="large-12 columns ProductDropdown left">
<p class="hideMediaQuery">RACES</p>
<label>
<p>TESTEST</p>
</label>
</div>
Anybody know why it is not working? I have just put it in style tags at the top of the page to test it before i put it in a style-sheet is this the reason?
Any advice would help.
<style>tag. Can you provide us the relevant HTML? (<head>par and the line where you're using.hide-for-text)!importantwould normally trump anything.