Using Child theme to override @media max-width
-
My theme uses the following code:
@media only screen and (max-width: 780px) { ul.sub-menu { position: relative; left: 0; display: block; width: 100%; } ul.sub-menu li{ border-bottom: 0px solid #fff; } ul.sub-menu li:last-child{ border-bottom: 0px solid #fff; } }
I want to change this to:
@media only screen and (max-width: 992px) { ul.sub-menu { position: relative; left: 0; display: block; width: 100%; } ul.sub-menu li{ border-bottom: 0px solid #fff; } ul.sub-menu li:last-child{ border-bottom: 0px solid #fff; } }
How can I do this using the child theme? It seems to me that because it is not a direct match with the @media line, WordPress won’t recognize it.
Any help is appreciated
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Using Child theme to override @media max-width’ is closed to new replies.