Images get stretched in responsive and mobile mode... MAJOR PROBLEM...

Discussion in 'Infoway WordPress Theme' started by jahniah, Apr 10, 2014.

Thread Status:
Not open for further replies.
  1. jahniah

    jahniah New Member

    Joined:
    Apr 6, 2013
    Messages:
    26
    Likes Received:
    0
    Location:
    Lawrenceville, GA, US
    My website is http://clientlync.com/

    Some (not all) images gets distorted when the browser is resized (smaller) and in the mobile view...

    Regular view (looks normal)...

    normal-view.png

    Browser re-sized view...

    responsive.png


    Mobile view...

    mobile.png http://clientlync.com/how-to-stay-healthy-when-you-work-from-home/

    I browsed this entire forum and did not find a fix for this. The following and similar codes (listed in this forum) did not work:

    .fullwidth img {
    width: 80%;
    }

    I changed the 80% to various numbers but it did not help.

    Please help me fix this MAJOR problem!
     
  2. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Hello,

    Paste this code in Custom CSS
    Appearance > Theme Option > Styling Option > Custom CSS

    Code:
     .content-bar .post.single .post_content.single img {
    width: 100%;
    height: 100%;
    }

    Thanks & Regards
    Gourav Shrivastava
     
  3. jahniah

    jahniah New Member

    Joined:
    Apr 6, 2013
    Messages:
    26
    Likes Received:
    0
    Location:
    Lawrenceville, GA, US
    The code you provided above fixed the issue however it created the following problem:

    I'm working on a post (draft - not published) and the images in the post (in all sized screens - mobile and desktop) displays too big. See below...

    Normal view before the CSS code was added:
    normal-pics.png

    Problem view after CSS code was added:
    problem-pics.png

    Normal view before the CSS code was added:
    normal-videos.png
    Problem view after CSS code was added:
    problem-videos.png
    Please help. I want to publish and promote this post soon.
     
  4. Nitesh

    Nitesh Support Staff

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

    Remove previous css code and make changes as shown in the image.
    Go to the Appearance > Editor > style.css

    height.png
    max-width.png

    Thanks & Regards
    Nitesh Raghuwanshi
     
    jahniah likes this.
  5. jahniah

    jahniah New Member

    Joined:
    Apr 6, 2013
    Messages:
    26
    Likes Received:
    0
    Location:
    Lawrenceville, GA, US
    Perfect. Thanks.
     
Thread Status:
Not open for further replies.

Share This Page