WordPress.org

Support

Support » How-To and Troubleshooting » Image stretching problem

Image stretching problem

  • I’m trying to insert an image with wrap-around text on a page in the Videographer theme.

    The image is 157 x 105. It uploads OK, it inserts OK, it looks fine from the Dashboard.

    But viewed on the site it’s distorted (stretched horizontally). If I inspect the image, it’s still showing 157 x 105.

    Could anyone explain what I’m doing wrong?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Michael

    @alchymyth

    Forum Moderator

    the reason is the ‘width: 40%’ in the following lines in style.css:

    .alignleft { float:left; text-align:left; width: 40%; min-height: 50px;; }
    .alignright { float:right; text-align:right; width: 40%; min-height: 50px; margin-right: 10px; }

    just remove ‘width: 40px;’ from both lines in the style.css of your theme.

    That’s great, thanks alchymyth, it’s sorted.

    Why would the designer have made that restriction?

    Michael

    @alchymyth

    Forum Moderator

    why questions are notoriously difficult to answer 😉

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Image stretching problem’ is closed to new replies.
Skip to toolbar