Create gap between columns

hey, my columns look bad on mobile phones. how can I put a gap between the columns so they don´t stick together like in the picture. I already added “mbs” in the “class”, but I need more margin, as u can see in the picture.

Hi there,

Please add this code to the Global CSS:

@media(max-width: 767px) {
    .x-container .x-column:not(:last-child) {
        margin-bottom: 1.2em !important;
    }
}

Please check these links to the references of the code above:
https://www.w3schools.com/css/css_rwd_mediaqueries.asp
https://www.w3schools.com/css/css_margin.asp
https://www.w3schools.com/cssref/sel_not.asp
https://www.w3schools.com/cssref/sel_last-child.asp

Hope this helps.

I´ve put the code in the CSS but it didn´t work. Any other ideas?

Hi there,

Please make sure you have included the !important declaration in the CSS code.

Also, feel free to increase the value of the margin bottom.

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.