WordPress.org

Ready to get started?Download WordPress

Forums

Image stretching problem (4 posts)

  1. Boz2006
    Member
    Posted 4 years ago #

    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?

  2. alchymyth
    The Sweeper & Moderator
    Posted 4 years ago #

    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.

  3. Boz2006
    Member
    Posted 4 years ago #

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

    Why would the designer have made that restriction?

  4. alchymyth
    The Sweeper & Moderator
    Posted 4 years ago #

    why questions are notoriously difficult to answer ;-)

Topic Closed

This topic has been closed to new replies.

About this Topic