Here is a Possible Solution for stretched images

Discussion in 'GeoCraft WordPress Theme' started by [email protected], Apr 10, 2013.

  1. elopezjr2005@yahoo.com

    [email protected] New Member

    Joined:
    Dec 28, 2011
    Messages:
    4
    Likes Received:
    0
    I added this code to custom CSS for the image stretching problem. It corrected it. I did not have to resize any images. I added this to the Geo Craft theme. Here is the code:

    img { max-width:100% !important; height:auto !important;}

    I hope this helps and works for you.
    Ernesto Lopez
    San Juan, TX



     
  2. rogerb

    rogerb Active Member

    Joined:
    May 8, 2012
    Messages:
    481
    Likes Received:
    33
    I'm trying it out Ernesto as I never seem to get things right- what does the !important wording do?
     
  3. TSMM

    TSMM Member

    Joined:
    Dec 28, 2011
    Messages:
    65
    Likes Received:
    2
    Nope, didn't fix my issue. I am getting frustrated with a lot of problems with this theme. The images should look professional, not cut off or stretched.
     
  4. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
    Hello,

    Image will look professional if the inserted images are of correct dimensions. The exact dimension for the listing image is of width:448px and height:270px;. If the uploaded images are smaller or bigger than the specified dimension the image will be stretched, since the width is fixed in the theme to maintain the ideal listings page layout.

    If you want you can however make the height auto through the Custom CSS so the feature image automatically adjusts the height depending upon the width of the image, so that if the image is bigger than specified dimension it will still look professional.

    For that Paste the CSS code below in the themes options panel:

    Code:
    .flexslider .slides img {
    max-width: 95%;
    display: block;
    width:448px;
    height:auto;
    }
     
  5. azza

    azza Member

    Joined:
    Apr 29, 2013
    Messages:
    61
    Likes Received:
    7
    Would it be sensible to use your code along side the smushit plugin to keep images sizes acceptably small
     
  6. molatin

    molatin Member

    Joined:
    Aug 11, 2012
    Messages:
    558
    Likes Received:
    19
    Yep - great plug in
     
  7. nzcid

    nzcid Member

    Joined:
    Mar 22, 2013
    Messages:
    72
    Likes Received:
    1
    Added to my site and it sure did reduce the size of some of the images..

    Many thanks.
     

Share This Page