Hi, I’m using drag and drop emails and have one tiny thing I need to tweak in an HTML module. Unfortunately, I’m not having luck finding the answer on StackOverflow.
I want an image to not display when the browser is below a certain width.
If I could edit the style header, this is what I would put:
<style>@media (max-width: 600px) {
#fadeshow1 { display: none; }
}</style>
and then this in the body:
<img src=“https://4733706.fs1.hubspotusercontent-na1.net/hubfs/4733706/top.png” style=“height: 100%; width: 100%;” id=“fadeshow1”>
How do I convert this media query to inline CSS for this img?
For context, this is the full div:
<div style=“background-image:url(https://4733706.fs1.hubspotusercontent-na1.net/hubfs/4733706/postcard2.png); height: 100%; background-size: contain; background-repeat: no-repeat;”>
<img src=“https://4733706.fs1.hubspotusercontent-na1.net/hubfs/4733706/top.png” id=“fadeshow1”>
<p style=“margin: 70px 0 90px 0; font-size: 36px; font-weight: bold; color: #426D60;” align=“center”><a href=“https://www.indicotravels.com” style=“text-decoration: none; color: #426D60;”>Welcome!</a></p>
<img src=“https://4733706.fs1.hubspotusercontent-na1.net/hubfs/4733706/top.png” id=“fadeshow1”>
</div>