Support » Fixing WordPress » Images in posts are forced to a certain width and squished

  • Resolved mpjohnso


    The site is:

    You’ll notice on the main page that pictures within the post excerpts are squished down as well as when you visit an individual post’s page. If you right click on the images and view them, you’ll see that they are, in fact, a different width than is displaying.

    I can’t for the life of me figure out what is over-riding the width of my pictures but if someone could take a quick look, I’m sure it’s something pretty simple…

    Thanks so much in advance!!!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Samuel Wood (Otto)

    (@otto42) Admin

    Your theme has this CSS in the stylesheet:

    .excerpt .entry img
    	max-width: 175px;
    	max-height: 175px;
    	width: expression(this.width > 175 ? 175: true);
    	height: expression(this.height > 175 ? 175: true);

    That forces the images to 175 wide. Also, that “expression” thing doesn’t work in most browsers. I’d just remove that entirely.

    so I should just remove the max-width line? do I need to remove it somewhere else as well since the image is affected in the single post version as well?

    and what is the expression thing supposed to do anyways?

    Thanks otto!

    nevermind on the removing it somewhere else, it fixed it in both places… but i’m still wondering what the expression thing is about


Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Images in posts are forced to a certain width and squished’ is closed to new replies.