GSaad Posted January 12, 2022 Share Posted January 12, 2022 Site URL: https://www.nationalfashioncollege.com/partners I'm using custom code to create a 6 column section of text on desktop and 2 column on mobile. I am using this code currently in the custom css section: @media screen and (min-width: 640px) { #block-yui_3_17_2_1_1638761244808_11129 { column-count: 6; column-gap: 25px; } } @media screen and (max-width: 720px) { #block-yui_3_17_2_1_1638761244808_11129 { column-count: 2; column-gap: 20px; } } When I am in edit mode the text shows up but as soon as I save it the text all vanishes. It is however showing on mobile. What am I doing wrong?!?! I have tried clearing caches, different browsers, deleting section and trying again but same issue. Please help! Link to comment
tuanphan Posted January 12, 2022 Share Posted January 12, 2022 Edit your code to this (I changed some class name) @media screen and (min-width: 768px) { #block-yui_3_17_2_1_1638761244808_11129>div { column-count:6; column-gap: 25px; } } @media screen and (max-width: 767px) { #block-yui_3_17_2_1_1638761244808_11129>div { column-count:2; column-gap: 20px; } } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
GSaad Posted January 13, 2022 Author Share Posted January 13, 2022 Unfortunately it's still doesn't seem to work. When I am in the Custom CSS screen it shows and as soon as I save it and refresh the page it disappears again. Link to comment
Solution tuanphan Posted January 14, 2022 Solution Share Posted January 14, 2022 On 1/13/2022 at 10:04 AM, GSaad said: Unfortunately it's still doesn't seem to work. When I am in the Custom CSS screen it shows and as soon as I save it and refresh the page it disappears again. It looks like Animation conflict with the code, try this new code @media screen and (min-width: 768px) { #block-yui_3_17_2_1_1638761244808_11129>div { column-count:6; column-gap: 25px; } #block-yui_3_17_2_1_1638761244808_11129 * { opacity: 1 !important; transform: unset !important; } } @media screen and (max-width: 767px) { #block-yui_3_17_2_1_1638761244808_11129>div { column-count:2; column-gap: 20px; } #block-yui_3_17_2_1_1638761244808_11129 * { opacity: 1 !important; transform: unset !important; } } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
GSaad Posted January 15, 2022 Author Share Posted January 15, 2022 Thank you! That worked a treat! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment