Hey, I’m using the Editorial theme and trying to change the layout for my blog posts in mobile view to prevent the content getting all squeezed together.
In the theme editor I go to the blog post template, and there is a media query in the custom CSS box. But any code I add under the media query isn’t working. When I add the same CSS code outside of the media query it does work, so the media query seems to be the culpit.
I have read everything I could find in the shopify community on this topic but none of the suggestions seem to work for me. What have I missed?
Custom CSS:
/* Default image dimensions */
img {
width: 40%;
height: auto;
}
.img-left {
margin-right: 40px;
float: left;
}
.img-right {
margin-left: 40px;
float: right;
}
.paragraph2 {
font-size: 18px;
}
h1 {
text-align: left;
margin-bottom: 30px;
}
p {
text-align: left;
}
h4 {
text-align: left;
}
/* Media query for mobile devices */
@media only screen and (max-width: 768px) {
h1 {
text-align: center;
}
img {
width: 500px;
height: 288px;
}
}
I have this in my theme.liquid code:
This is the blog post: https://freakysauces.com/blogs/recipes/how-to-prepare-black-bean-tacos
