WordPress.org

Ready to get started?Download WordPress

Forums

Responsive images how-to (2 posts)

  1. skeeterz71
    Member
    Posted 5 months ago #

    Hi,

    Using _s or underscores.me theme to build a theme. Images are not responsive with this theme. I have searched and tried so many things, none of which have worked. I finally tried the BC Responsive Images plugin and it doesn't work either.

    Can anybody point me to a tutorial that will show me how to make sure my images are responsive?

    Thanks

  2. CrouchingBruin
    Member
    Posted 5 months ago #

    Just stick the image in a block element and set the width of the image to either auto or as a percent:

    <style>
    .aPicture {
       width: auto;
    }
    </style>
    <div><img class="aPicture" src="/images/my_picture.jpg"></div>

    The picture will change size as the containing DIV changes size.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.