[Resolved] Image doesn't resize on mobile.

Home Forums Support [Resolved] Image doesn't resize on mobile.

Home Forums Support Image doesn't resize on mobile.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #124873
    Mary Kaiser

    There is an image featured on my home page, entered as media content in line with the text. I can’t figure out how to get it to automatically resize on mobile? I’ve tried removing the height/width values in HTML and adding CSS style to have the image width adjust according to screen width:

    #wp-image-24 img {
    width: 30%;
    max-width: 200px;
    }

    This does nothing. Not sure if I’m going about it the wrong way, or if the code is just wrong.

    #124880
    Mary Kaiser

    Figured it out!

    HTML:

    Liz-Crowe-Joong_new

    CSS:

    .wp-image-24 {
    float: left;
    margin: 0px 5px 0px 5px;
    width: 25%;
    max-width: 200px;
    }

    #124936
    Tom
    Lead Developer
    Lead Developer

    Glad you got it sorted! 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.