-
AuthorPosts
-
March 5, 2020 at 4:04 am #1190281
Hi guys,
How can I reduce the space between columns using Layout elements?
See attached file (need to reduce the white space)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
March 5, 2020 at 7:35 pm #1190594Hey buciks1,
Could you please give us a link to your website, we need more context to be able to help you.
Best regards,
VictoriaMarch 5, 2020 at 7:52 pm #1190607https://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
March 6, 2020 at 6:40 am #1190750Hi,
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,
RikardMarch 6, 2020 at 11:48 am #1190832Sure
March 9, 2020 at 7:14 pm #1191621Can anyone help me with this resizing?
March 11, 2020 at 2:15 am #1192092Hi,
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,
IsmaelMarch 11, 2020 at 2:49 pm #1192300Done, this is what happens with 2% > https://imgur.com/a/heRkrRv
This is how looks like with 1% (margin left) – https://imgur.com/a/oVc9IKNand I wanna reduce white space more but as I see 1% is a minimum :/
- This reply was modified 4 years, 9 months ago by buciks1.
March 12, 2020 at 7:59 pm #1192736Hi 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,
VictoriaMarch 12, 2020 at 9:52 pm #1192790Hi,
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 :(
March 13, 2020 at 7:51 pm #1192947Hi 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,
VictoriaMarch 17, 2020 at 12:49 am #1193701Yes they look centered now cuz I delete CSS, it affected my all sites
Look at that site now:
March 21, 2020 at 6:33 pm #1195122Hi,
Sorry for the late reply, the page doesn’t seem to exist right now, do you still need help with this?Best regards,
MikeApril 11, 2020 at 6:54 pm #1202980Yes I need help and this page is in private mode cuz it’s still not ready to publish
April 12, 2020 at 4:58 pm #1203112Hi,
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,
MikeApril 13, 2020 at 9:17 pm #1203350Thanks a lot Mike <3 Much love!
April 13, 2020 at 11:16 pm #1203372Hi,
Did you need additional help with this topic or shall we close?
Best regards,
Jordan ShannonMay 5, 2020 at 7:22 pm #1210064Hello,
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;
}May 6, 2020 at 12:31 pm #1210307Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.