WordPress.org

Ready to get started?Download WordPress

Forums

Auto-Adjusting Images? (2 posts)

  1. mhains
    Member
    Posted 7 years ago #

    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

  2. Austin Matzko
    Member
    Posted 7 years ago #

    No, not exactly, but you could set them to 200px like so (assuming your posts are classed as "post"):

    .post img {
    width: 200px;
    }

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.