New Landing How can we help? Themeforest Theme Support Neighborhood Text inside image banner is not responsive

Viewing 8 posts - 1 through 8 (of 8 total)
  • #259967
    goodtimesmag
    Member
    Post count: 191

    Hi swiftideas team,

    I used the image banner swiftcode an placed a text inside the banner. On my standard desktop everything looks great (see the image attached “good”, but when display size changes the text inside the banner is sometimes out of the banner (see image attached “bad”).

    This is the live URL for you to test it: http://goodtimesdeals.de/ueber-goodtimesdeals/

    Attachments:
    You must be logged in to view attached files.
    #260052
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Add this to your custom css:

    .sf-image-banner > img {
      min-height: 420px;
      object-fit: cover;
    }

    But that will apply to all image banners, if you have image banners with different heights you will need to add an extra class to the image banner and replace .sf-image-banner with .yourextraclass

    – Kyle

    #260055
    goodtimesmag
    Member
    Post count: 191

    Hi Kyle,

    thanks for the code, but the result is not always perfect, as you can see on the screenshot.

    Attachments:
    You must be logged in to view attached files.
    #260059
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Add:

    
    @media only screen and (max-width: 479px) { 
    .sf-image-banner > img {
      min-height: 500px;
      object-fit: cover;
    }
    }

    – Kyle

    #260077
    goodtimesmag
    Member
    Post count: 191

    Thanks Kyle, so far it looks good.

    But I have recognized on the same site on my iPhone 5s that I have again the issue, that my H1 text is out of display (see screenshot)

    Attachments:
    You must be logged in to view attached files.
    #260079
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Please remove the strong tags for the text as you’re using h1

    – Kyle

    #260080
    goodtimesmag
    Member
    Post count: 191

    Alright, thanks for the quick answer!

    #260081
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    No problem

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.