Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #181280

    Hi guys,

    I just made some changes to the layout of my site and some issues came up. Thanks in advance for the help!

    In the “About Us” section on the main page – there is a large gap in mobile view between the “Personal Service & Expertise” paragraph and the “High-End Custom Designs” paragraph. All I did was move these three small paragraphs from another colour section and this issue came up.

    What do you think caused it and how can I fix it?

    Many thanks,
    Jonathan

    #181290

    Hi Jonathan!

    Please add following code to Quick CSS in Enfold theme options under Styling tab

    @media only screen and (max-width: 767px) { .avia-builder-el-29 { margin-bottom: -40px; }}

    Best regards,
    Yigit

    #181371

    Didn’t work unfortunately. Also, any idea why this was caused? I didn’t have any problem with it before moving the 3 paragraphs to the new colour section.

    #181379

    Hi!

    In your css/custom.css, replace this line 269:

    div.flex_column:nth-child(6){
    	height: 250px;
    }

    With this:

    div.flex_column:nth-child(6){
    	height: 170px;
    }

    Cheers!
    Josue

    #181383

    Thanks Josue, it wasn’t that one that was affected – I commented out the nth-child(6) under “@media only screen and (max-width: 480px)” and that made it look more in line but not perfect. The problem is that this code also affects the testimonials and removed the padding I had after the testimonials. How come this affects both locations? Shouldn’t it only affect one?

    Many thanks,
    Jonathan

    #181391

    Hey Jonathan!

    Make it exclusive to the About section using its ID:

    #about div.flex_column:nth-child(6){
    	height: 170px;
    }

    Regards,
    Josue

    #181399

    Brilliant, thanks! How come child(6) affected two places though? Shouldn’t there only be one 6th instance in the page? Is it something wrong with my site?

    #181402

    Hi!

    Nothing wrong, thats normal CSS behavior, nth-child is relative to the parent, so that selector was affecting every sixth paragraph it encounters.

    Cheers!
    Josue

    #181404

    Ok, thanks so much for the help.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Gap in Mobile’ is closed to new replies.