Tagged: ,

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1076829

    Hey all,

    I use two grid rows on top of each another. Now I want to create a 20px white space to visually divide the two rows.
    When I place a Separator/Whitespace with a set high of 20px between the two grids and update the page there is a large gap between the grids (way larger than 20px).
    I´ve reduced the height of the whitespace to 1px but the gap remains unchanged. I´ve also tried to use a color section with adjusted padding – same result.

    Is there a fix to the issue? Maybe some css?

    Cheers
    Restube

    #1078091

    Hey restube,
    Sorry for the late reply, Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:

    #top.page-id-337 #after_submenu_1 > .container > .content {
    padding: 10px 0 !important;
    }

    This section has a top & bottom padding, so to make it 20px high we will split the padding in half.

    Best regards,
    Mike

    #1078630

    Thanks Mike, works perfectly!

    #1078691

    Hi,
    Glad to hear, I assume we can close this now, but I like to ask first. Shall we close this then?

    Best regards,
    Mike

    #1084560

    Hey Mike,

    it appears that the solution only works for the gap between the first two grid sections.
    I`ve added a third one below the second and the gap is really big again.

    How can I have it the same as with the first gap?

    Cheers

    #1084571

    Hi,
    Yes the css is very targeted, for your new section also use this css:

    #top.page-id-337 #after_submenu_2 > .container > .content {
    padding: 10px 0 !important;
    }

    Then please clear your browser cache and check.

    Best regards,
    Mike

    #1176538

    How do I reduce the space between 2 rows

    #1176565

    Hi,

    Seems to come from the photo padding. Add this to quick css:

    .av_one_third.av-animated-generic.pop-up{
    padding-top:0px!important;
    padding-bottom:0px!important;
    }

    Best regards,
    Jordan Shannon

    #1176687

    this broke the format of the boxes

    #1177177

    Hi,
    Thank you for the feedback, to adjust the space between these rows please try this css in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field, I assigned percentages so the values would be somewhat flexible, and targeted the main screen sizes, 425px and under for mobile, 768px, 1024px, 1440px, and above for desktop, and included a little extra around these sizes. This should cover all real devices.

    @media only screen and (min-width: 1299px) { 
    	#top.home #av_section_1 > div > div.container > main > div > div > div:nth-child(4) {
    	margin-top: -10% !important; 
    }
    }
    @media only screen and (min-width: 999px) and (max-width: 1050px) { 
    	#top.home #av_section_1 > div > div.container > main > div > div > div:nth-child(4) {
    	margin-top: -25% !important; 
    }
    }
    @media only screen and (min-width: 768px) and (max-width: 800px) { 
    	#top.home #av_section_1 > div > div.container > main > div > div > div:nth-child(4) {
    	margin-top: -40% !important; 
    }
    }
    @media only screen and (max-width: 767px) { 
    		#top.home #av_section_1 > div > div.container > main > div > div > div.flex_column_table > div.flex_column:nth-child(n+2),#top.home #av_section_1 > div.av-section-color-overlay-wrap > div.container > main > div > div > div:nth-child(4) {
    		margin-top: -30% !important; 	
    		}
    }

    After applying the css, Please clear your browser cache and check.

    Best regards,
    Mike

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.