Jump to content

Image Block resize on mobile

Recommended Posts

  • 4 months later...

I'm having just the same problem as the original poster, on this page: https://www.elizabethguilt.com/fiction

The "free to read" badge image comes out sensible on desktop but full width on mobile. Following previous advice, I was hoping this CSS snippet would fix it:

@media screen and (max-width:767px) {
div#yui_3_17_2_1_1678919226636_70 {
    width: 30%;
    margin: 0 auto;
    }
}

... but it seems to make no difference. Can anyone offer any advice on what I'm doing wrong? Many thanks!

The image also currently shows as unreadably-tiny on tablet, which will be the next problem. Presumably I would need to set a min-width for the `div` element on a tablet-sized screen width?

Link to comment
  • 3 months later...
  • 4 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.