Need Help With @Media Not Working
-
Hello,
I need some assistance with my CSS code using @media. I’ve watched a few tutorials before posting on here, but I can’t seem to figure out why my CSS for @media is not working with iframe.
What I’m trying to do is reduce the iframe to height: 600px after it gets down to mobile view.
My CSS code is as follows:
@media (max-width: 767px) { iframe #story-map { height: 600px !important; } }
The iframe code is as follows (I’m not looking to change this part, unless it’s necessary):
<iframe width="100%" height="800" frameborder="0" scrolling="yes" margin="0 0 5% 5%" id="story-map" src="https://na-alii.maps.arcgis.com/apps/MapJournal/index.html?appid=c37ca5637eb045c8921731a730d0d647"></iframe>
Am I targeting it incorrectly? Is there something else wrong with my CSS? I’m a bit confused as to what I might be doing wrong.
Thank you for your help!
The page I need help with: [log in to see the link]
- The topic ‘Need Help With @Media Not Working’ is closed to new replies.