Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #1190281

    Hi guys,

    How can I reduce the space between columns using Layout elements?
    See attached file (need to reduce the white space)

    View post on imgur.com

    I wanna do it only on one page: (page id:10687)

    Also the most important thing for me is to make them all being centered on the page.. I was trying to do it by my self but all columns when little bit to the left

    #1190594

    Hey buciks1,

    Could you please give us a link to your website, we need more context to be able to help you.

    Best regards,
    Victoria

    #1190607

    https://l2p-league.com/ this is my main website

    and here is link to my private website where I wanna solve problem >> https://l2p-league.com/tftlol-coaching

    #1190750

    Hi,

    Thanks for that, but I get a 404 error on the page you linked to. Maybe we need to be logged in to be able to view it? If so then please post login details in private.

    Best regards,
    Rikard

    #1190832

    Sure

    #1191621

    Can anyone help me with this resizing?

    #1192092

    Hi,

    Sorry for the delay. Please edit the column and set the Row Setting > Row Layout > Space between columns to the first option to create space between the columns. After that, set the Styling > Background > Background Repeat to Stretch to Fit. We can then use css to adjust the width of the columns or the space between them.

    #top .av_one_third {
       width: 32%;
       margin-left: 2%;
    }
    

    Best regards,
    Ismael

    #1192300

    Done, this is what happens with 2% > https://imgur.com/a/heRkrRv
    This is how looks like with 1% (margin left) – https://imgur.com/a/oVc9IKN

    and I wanna reduce white space more but as I see 1% is a minimum :/

    • This reply was modified 4 years, 8 months ago by buciks1.
    #1192736

    Hi buciks1,

    You need to play with the width and the margin-left value to work out the combination that suits you most.

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1192790

    Hi,

    This is what I made https://imgur.com/a/mdSz7OX

    I used this css:
    #top .av_one_third {
    width: 27%;
    margin-left: 1%;
    margin-right: 1%;
    }

    Now I like the size of space between columns but how I can center all columns? They are a little bit to the left for some reason :(

    #1192947

    Hi buciks1,

    https://share.getcloudapp.com/X6uzEKJe They look centered on my end. Could you please clear the cache, check again and get back to us.

    Best regards,
    Victoria

    #1193701

    Yes they look centered now cuz I delete CSS, it affected my all sites

    Look at that site now:

    https://l2p-league.com/tftlol-coaching/

    #1195122

    Hi,
    Sorry for the late reply, the page doesn’t seem to exist right now, do you still need help with this?

    Best regards,
    Mike

    #1202980

    Yes I need help and this page is in private mode cuz it’s still not ready to publish

    #1203112

    Hi,
    Thank you for pointing this out, I took a look at your page and tested the css above and see that the first column has “float: right” applied.
    To center these columns I added this css, which is only applied to this one page.

    #top.page-id-10687 #after_section_1 .entry-content-wrapper .av_one_third {
    width: 27%;
    margin-left: 1%;
    margin-right: 1%;
    }
    #top.page-id-10687 #after_section_1 .entry-content-wrapper {
    	justify-content: center;
        display: flex;
    }

    Best regards,
    Mike

    #1203350

    Thanks a lot Mike <3 Much love!

    #1203372

    Hi,

    Did you need additional help with this topic or shall we close?

    Best regards,
    Jordan Shannon

    #1210064

    Hello,

    How I need to modify CSS to do the same with 4 columns

    Here is SS about how it looks like > https://imgur.com/a/EzMLaXS


    @Mike
    please help.

    I use this but it’s not working at all.

    #top.page-id-10687 #after_section_1 .entry-content-wrapper .av_one_fourth {
    width: 27%;
    margin-left: 1%;
    margin-right: 1%;
    }
    #top.page-id-10687 #after_section_1 .entry-content-wrapper {
    justify-content: center;
    display: flex;
    }

    #1210307

    Hi,
    Thanks for the screenshot. This css will give you the 1% column margin for the 1/4 columns on that one page:

    #top.page-id-10687 #av_section_1 .entry-content-wrapper .av_one_fourth {
    width: 22%;
    margin-left: 1%;
    margin-right: 1%;
    }

    but to center the 1/4 columns we will need to wrap them in a div because the first few columns brake if they are also centered with flex, so to wrap the columns, try adding this code to the end of your functions.php file in Appearance > Editor:

    function custom_script(){
      ?>
      <script>
    (function($){
      $(document).ready(function(){
       $('#top.page-id-10687 #av_section_1 .entry-content-wrapper .av_one_fourth').wrapAll('<div id="coaching">');
    });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'custom_script');

    also ensure that the option Enfold Theme Options > Performance > Load jQuery in your footer is disabled and no other plugin is moving the jQuery to the footer.
    Then add this css:

    #top.page-id-10687 #coaching {
    	justify-content: center;
        display: flex;
    }

    Then clear your browser cache and check, please see the screenshot in Private Content area of the expected results.

    Best regards,
    Mike

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