-
AuthorPosts
-
June 3, 2020 at 8:33 pm #1219241
Hello,
please i try to create 6th column on my site with no success.
Placed the columns inside a color section. Used “custom-section” ID atribute for the section and added this to custom CSS but no result at all.
#custom-section .flex_column.av_one_fifth {
width: 14.5%;
margin-left: 2%;
}#custom-section .flex_column.av_one_fifth.first {
clear: none;
margin-left: 2%;
}#custom-section .flex_column.av_one_fifth:nth-child(6) {
margin-top: 0 !important;
}June 3, 2020 at 11:25 pm #1219259you like to have 6 1/6 columns besides ?
in one custom-section?give a custom ID or custom-class to your color-section : on top you have #custom-section ( custom-section in the unique ID field )
drag 6 containers in the color-section ( it’s a matter of taste what you take. I put 6 1/5 containers in there. But in the end it doesn’t matter, because the width is generated differently) .Give a custom-class to those containers f.e.: one-sixth
and do not set it to equal-height : this also is done bei flex-layout
align-items: stretch is normal behavior.on this test-page i decided to have und 990px 3col besides and 2 rows
under 768px 2cols besides and 3 rows
under 480px one col full width:#custom-section .entry-content-wrapper { display: flex !important; flex-flow: row wrap; justify-content: space-between; } #custom-section .entry-content-wrapper::before, #custom-section .entry-content-wrapper::after { display: none !important; } #custom-section .entry-content-wrapper .flex_column { flex: 0 1 auto; margin: 0 0 4% !important; width: unset !important; } #custom-section .entry-content-wrapper .flex_column.one-sixth { flex-basis: 16%; } @media only screen and (max-width: 989px) { #custom-section .entry-content-wrapper .flex_column.one-sixth { flex-basis: 30%; width: unset !important; } } @media only screen and (max-width: 767px) { #custom-section .entry-content-wrapper .flex_column.one-sixth { flex-basis: 48%; width: unset !important; } } @media only screen and (max-width: 479px) { #custom-section .entry-content-wrapper .flex_column.one-sixth { flex-basis: 100%; width: unset !important; } }
see here: https://webers-testseite.de/cynthia/macika/
- This reply was modified 4 years, 5 months ago by Guenni007.
June 4, 2020 at 10:37 pm #1219582Thank you, this works perfect!
and now i need to modify the mobile view to 2column instead of one – only for this section.
Thank you
June 4, 2020 at 10:48 pm #1219590Figured it out!
modified under 480px to 48%.
Great tutorial – thank you!June 5, 2020 at 6:53 am #1219675Hi macika,
Great, I’m glad that you got it working and thanks for sharing your code. Thanks also to @guenni007 for helping out and sharing.
Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
RikardJune 5, 2020 at 9:10 am #1219714We cen close it, thank you.
June 6, 2020 at 7:07 am #1220001 -
AuthorPosts
- The topic ‘6th column creation’ is closed to new replies.