Tagged: height column
-
AuthorPosts
-
April 26, 2023 at 10:18 am #1405677
Hello
I want to display 6 keywords in three rows and two columns like this:
—————— ——————– ——————–
keyword 1 keyword 2 keyword 3
—————— ——————- ——————-
keyword 4 keyword 5 keyword 6
—————— ——————- ——————–A line on top, between and below each entry. The lines should still work on am mobile device, where the entries are listed below each other.
My problem is that the spacing between the text and the lines is too big if I use three 1/3 column sections. If I enter every line and text in a seperate 1/3 section, the spacing is much better (as required) but on mobile device, the lines and keywords are mixed up (first the three lines, then three keywords, then three lines ….
Can you show me a way to have little spacing (height) that works on mobile devices?
Many thanks in advance.April 27, 2023 at 5:48 am #1405771Hi Reto,
Can you give us a link to the page mentioned? so we can try to give accurate CSS to match what you’re trying to achieve.
Best regards,
NikkoMay 1, 2023 at 10:14 am #1406083Hi Nikko.
Please see link in private content. The section I am referring to starts with the entry “PERSONALIZED & DISCRETE APPROACH”.
There are two times six entries. The second set looks fine on a desktop. But not at all on a mobile device.
Best regards, Reto- This reply was modified 1 year, 7 months ago by retom.
May 2, 2023 at 10:08 am #1406162Hi retom,
Thanks for providing the link and admin access.
I have made changes on the link you gave.
These are the things I did on that page:
1. Add a Color Section and gave it a Custom CSS Class: special-section
2. Added those 1/3 columns and the contents
3. On the last separator of the first and second columns, I have set it’s Element’s Visibility to Hide on very small screens
4. Finally, in Enfold > General Styling > Quick CSS, I have added this CSS code:.special-section p { margin: 0; } @media only screen and (max-width:479px) { .responsive #top #wrap_all .special-section .flex_column { margin-bottom: 0; } }
Please review your site.
Best regards,
NikkoMay 2, 2023 at 6:27 pm #1406231Hi Nikko, thank you for your help! This looks a lot better than what I had before.
When I reduce the width of the screen, the 1/3 columns are aligned below each other already on “small screens”. Because of that, I have hidden the last separator of the first and second column also on “small screens”. This looks good regarding the separator, but the spacing is too big and is only reduced, once the screen is very small. Could you please help with this last small issue?
Best regards, RetoMay 2, 2023 at 7:17 pm #1406252Hi Reto,
Yes, I’ll be happy to help.
Can you give us a screenshot on the issue you mentioned? I could not seem to see it on my mobile phone.
You can upload the screenshot in dropbox or https://imgur.com/ and then post the link here.Best regards,
NikkoMay 17, 2023 at 12:16 pm #1407742Hi Nikko
Sorry for the late reply! Please find the link in the private section.
– Screenshot 1: large screen (columns are displayed in one row) -> OK
– Screenshot 2: small screen (columns are displayed below each other, but vertical spacing is not as we would like – see red markings) -> TO BE IMPROVED
– Screenshot 3: very small screen (columns are displayed below each other with identical spacing) -> OKCan you help with this?
Talking about spacing I have one more question: Further down the website the is a header “Services” and below four Columns with fullwidth buttons. On hover over, the button changes its background color. I would like that the lines above and below the buttons has no spacing to the button. But now there is a spacing. Can you help me with reducing the spacing to 0, so that the line and the button “touch” each other?
Regards, Reto
May 18, 2023 at 11:56 am #1407826Hi Reto,
Thanks for the screenshots.
I have replaced this part of the code:@media only screen and (max-width:479px) { .responsive #top #wrap_all .special-section .flex_column { margin-bottom: 0; } }
with:
@media only screen and (max-width:767px) { .responsive #top #wrap_all .special-section .flex_column { margin-bottom: 0; } }
Please review your site.
Best regards,
NikkoMay 22, 2023 at 10:19 am #1408115Many thanks Nikko, now it looks and behaves exactly as I wanted!
Could you help me with this other problem?
Further down the website the is a header “Services” and below four Columns with fullwidth buttons. On hover over, the button changes its background color. I would like that the lines above and below the buttons has no spacing to the button. But now there is a spacing. Can you help me with reducing the spacing to 0, so that the line and the button “touch” each other?Regards, Reto
May 22, 2023 at 1:29 pm #1408134Hi Reto,
Please try to add this CSS code:
.page-id-3290 #after_section_6 .hr-custom { min-height: 1px; line-height: 1; margin-bottom: -2px; } .page-id-3290 #after_section_6 .hr-custom .hr-inner { margin-bottom: -5px; } .page-id-3290 #after_section_6 .avia-button-wrap ~ .hr-custom .hr-inner { margin-bottom: 0; margin-top: -13px; }
Best regards,
NikkoMay 23, 2023 at 3:17 pm #1408269Hi Nikko
Many thanks this works perfectly! Is there an easy way to make the reference dynamic instead of “#after_section_6”?
Best Regards, RetoMay 23, 2023 at 3:45 pm #1408276Hi Reto,
Yes, you’ll just need to put it inside a Color Section and then add a Custom CSS Class to it.
Then replace .page-id-3290 #after_section_6 with #top .yourclass (just replace yourclass with the class name you added).Best regards,
NikkoMay 24, 2023 at 11:15 am #1408400Hi Nikko, many thanks for your help! This works fine.
Best regards, RetoMay 24, 2023 at 2:13 pm #1408419Hi retom,
I’m glad that we could help you :)
Thanks for using Enfold and have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘How to reduce hieght of columns’ is closed to new replies.