New Landing How can we help? Spacing on mobile

Viewing 15 posts - 1 through 15 (of 18 total)
  • Posted in: Atelier
  • #319347
    Klarity
    Member
    Post count: 183

    Hi,

    Can you offer some advice on the following please.

    I have a home page layout which works well for me. but the spacing doesn’t work well when viewed on the mobile.
    See attached image attached.
    I’ve show the desktop and the mobile version. The issue is highlighted in Yellow.

    Many thanks,

    Peter

    Attachments:
    You must be logged in to view attached files.
    #319458
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    You can add the code below to your custom css option.

    .spb_content_element.spb_image_banner.col-sm-4, .spb_content_element.spb_image_banner.col-sm-6 {
        padding-bottom: 30px;
    }

    You can also use the rows visibility to design some content for desktop and other content for mobile inside the same page, just by changing the Row visibility.

    -Rui

    #319520
    Klarity
    Member
    Post count: 183

    Hi Rui,

    Thank you for this – its sort of worked but now added too much space into one of the gaps. see attached screen shot.

    Is there way to tweak this?

    Many thanks

    Peter

    #319530
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    replace the previous code by this one below.

    .spb_content_element.spb_image_banner.col-sm-4, .spb_content_element.spb_image_banner.col-sm-6:first-child {
        padding-bottom: 30px;
    }

    -Rui

    #319574
    Klarity
    Member
    Post count: 183

    Perfect – thank you
    but now the gap is bigger on the desktop version.

    Attachments:
    You must be logged in to view attached files.
    #319578
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    This should sort it.

    @media only screen and (max-width: 767px){
       .spb_content_element.spb_image_banner.col-sm-4, .spb_content_element.spb_image_banner.col-sm-6:first-child {
           padding-bottom: 30px;
       }
    }

    -Rui

    #319596
    Klarity
    Member
    Post count: 183

    Thanks Guys – that’s sorted it all out!

    #319599
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Great. Glad it’s sorted.

    -Rui

    #330281
    Klarity
    Member
    Post count: 183

    Hi Guys,

    This style setting has stopped working since the last lot of updates.
    can you help?

    Page ref: Glassfurniture

    Many thanks,

    Peter

    #330487
    David Martin – Support
    Moderator
    Post count: 20834

    Hi Peter,

    To clarify this, are you wanting to add a 30px space to the images without the verticle spacing on desktop?

    #330585
    Klarity
    Member
    Post count: 183

    Hi,

    Yes i would like all the spacing to be equal around all 5 images in this section.
    and then evenly spaced on Mobiles too.

    Many thanks,

    Peter

    #330699
    David Martin – Support
    Moderator
    Post count: 20834

    For mobile, please amend the code to this:

    @media only screen and (max-width: 767px) {
    .spb_content_element.spb_image_banner.col-sm-4, 
    .spb_content_element.spb_image_banner.col-sm-6 {
        padding-bottom: 30px;
    }
    }

    For desktop, please add a Blank Spacer asset between the Two/Three column Row from the Page Builder:

    #330972
    Klarity
    Member
    Post count: 183

    Hi Guys,

    Ive tried this and its not worked i’m afraid?
    I also have the spacer in and this doesn’t seem to be working?

    #331017
    David Martin – Support
    Moderator
    Post count: 20834

    Please add a WP login for us to take a closer look.

    Thanks.

    #331027
    Klarity
    Member
    Post count: 183
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 18 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register