WordPress.org

Support

Support » Miscellaneous » Auto-Adjusting Images?

Auto-Adjusting Images?

  • Many of the images on my site are 500px wide. I’d like to move to a theme that will, sometimes, have room for only 200px and other times the full 500px.

    Is there a CSS command that contracts an image to fit the available space?

    Thanks,
    Michael

Viewing 1 replies (of 1 total)
  • No, not exactly, but you could set them to 200px like so (assuming your posts are classed as “post”):

    .post img {
    width: 200px;
    }

Viewing 1 replies (of 1 total)
  • The topic ‘Auto-Adjusting Images?’ is closed to new replies.
Skip to toolbar