• Resolved trinitron3

    (@trinitron3)


    On my front page, I have setup a static slide with a single background image. It looks fine in landscape mode in the Chrome/Firefox in PC, as well as Safari/Chrome in IPad 3.

    When switching to portrait in IPad, or resizing the browser window in PC to less than 960px wide, the image gets reduced in height to 373px. I fixed this by changing line 1049 in style.css
    FROM:
    .stat_has_img .stat_content_inner {min-height: 250px;}
    TO:
    .stat_has_img .stat_content_inner {min-height: 510px;}

    However, the static text content is now incorrectly positioned near the top, both in landscape and portrait.

    How can I fix the height of the image in portrait, but keep the text positioned near the bottom?

    The site: https://www.tilundental.com
    Screenshots of the problem:

    (I am using v0.3.3 of Optimizer and will upgrade to Pro if this issue is resolved and if I can find out whether you have a testimonial widget in a separate email I sent).

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter trinitron3

    (@trinitron3)

    Screenshot of the problem: Screenshot

    Theme Author OptimizerWP

    (@layerthemes)

    Try adding this to your Custom CSS:

    .stat_has_img .stat_content_inner {padding-top: 200px!important;}

    Regards

    Thread Starter trinitron3

    (@trinitron3)

    The above suggestion (for padding-top) was overridden by something that changed padding-top to 73px.
    <div class="stat_content_inner" style="padding-top: 73px;">

    I had to add the padding-top to the inner .center instead:
    .stat_has_img .stat_content_inner .center {padding-top: 250px!important;} /* added to push text content lower in the static image */

    This is in addition to making the min-height larger:
    .stat_has_img .stat_content_inner {min-height: 510px;} /* changed from 250 to 510 */

    Kudos to layerthemes for the incredibly fast and reliable support. I am definitely upgrading to Pro. Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Front static slide content incorrect position in portrait view’ is closed to new replies.