I am trying to write a couple media queries to show/hide a couple of different text wrappers on one of my pages. Could someone please help me see where the problem is?
@Smith-Cordell this code looks great, thank you!! I put this into the HTML Embed Code Editor, but it doesn’t seem to be applying the change to anything. Here is a screenshot of it in the Nav. Do you know how I can make it apply?
@senecabryson You’re sending a link to the published page. A read-only link allows me to take a look inside your project and make changes without it saving so I can try and help you fix it. Will be much quicker to solve.
@senecabryson
Ok, I’ve figured it out. Sorry, I missed out two colons when I was editing your code before:
<style>
@media only screen and (max-width: 403px) {
.highlight-your-gifts-text-wrapper {
display: none;
}
.highlight-your-gifts-mobile-text-wrapper {
display: block;
}}
</style>
Also in the project on mobile breakpoint, you need to turn off display block for .highlight-your-gifts-mobile-text-wrapper as it will be handled by the code. Let it inherit display none from the desktop breakpoint.