CelsoDiniz Posted June 14, 2022 Share Posted June 14, 2022 Site URL: https://www.celsodinizphoto.com/home Hi, How to I completely remove the spaces between the image block and the gallery block, and between the gallery block and the video block, in this page? I want it removed both for the website and mobile. I've marked them with the red X on the attached screenshots from desktop and mobile. Thanks! Celso. Link to comment
tuanphan Posted June 15, 2022 Share Posted June 15, 2022 Try adding to Design > Custom CSS @media screen and (min-width:901px) { div#block-yui_3_17_2_1_1655210687268_49254 { padding-top: 0px; padding-right: 0px; } div#block-yui_3_17_2_1_1655146560514_13265 { padding-top: 0; padding-left: 0px; } div#block-yui_3_17_2_1_1654663240794_4650 { padding-bottom: 0px !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
CelsoDiniz Posted June 15, 2022 Author Share Posted June 15, 2022 Hi! It works perfectly on the desktop! THANKS! Is there a way to make it also work on the mobile version (picture above)? Thanks! Celso. Link to comment
tuanphan Posted June 15, 2022 Share Posted June 15, 2022 5 hours ago, CelsoDiniz said: Hi! It works perfectly on the desktop! THANKS! Is there a way to make it also work on the mobile version (picture above)? Thanks! Celso. With mobile, use this code @media screen and (max-width:640px) { div#block-yui_3_17_2_1_1654663240794_4650 { padding-bottom: 0px !important; } div#block-yui_3_17_2_1_1655210687268_49254 { padding-top: 0px !important; padding-bottom: 0px !important; } div#block-yui_3_17_2_1_1655146560514_13265 { padding-top: 0px !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
CelsoDiniz Posted June 15, 2022 Author Share Posted June 15, 2022 Hi, I put this under the one for the desktop but it did not work. Did I do it right? Link to comment
tuanphan Posted June 15, 2022 Share Posted June 15, 2022 35 minutes ago, CelsoDiniz said: Hi, I put this under the one for the desktop but it did not work. Did I do it right? Can you add & keep 2 code? We will check it again 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
CelsoDiniz Posted June 15, 2022 Author Share Posted June 15, 2022 Hi! Sure thing. It looks like this now: /* remove padding from sections in the home page on the DESKTOP BEACH */ @media screen and (min-width:901px) { div#block-yui_3_17_2_1_1655210687268_49254 { padding-top: 0px; padding-right: 0px; } div#block-yui_3_17_2_1_1655146560514_13265 { padding-top: 0; padding-left: 0px; } div#block-yui_3_17_2_1_1654663240794_4650 { padding-bottom: 0px !important; } /* remove padding from sections in the home page on the MOBILE BEACH */ @media screen and (max-width:640px) { div#block-yui_3_17_2_1_1654663240794_4650 { padding-bottom: 0px !important; } div#block-yui_3_17_2_1_1655210687268_49254 { padding-top: 0px !important; padding-bottom: 0px !important; } div#block-yui_3_17_2_1_1655146560514_13265 { padding-top: 0px !important; } } THANKS! Link to comment
tuanphan Posted June 16, 2022 Share Posted June 16, 2022 You missing a } The code should be /* remove padding from sections in the home page on the DESKTOP BEACH */ @media screen and (min-width:901px) { div#block-yui_3_17_2_1_1655210687268_49254 { padding-top: 0px; padding-right: 0px; } div#block-yui_3_17_2_1_1655146560514_13265 { padding-top: 0; padding-left: 0px; } div#block-yui_3_17_2_1_1654663240794_4650 { padding-bottom: 0px !important; }} /* remove padding from sections in the home page on the MOBILE BEACH */ @media screen and (max-width:640px) { div#block-yui_3_17_2_1_1654663240794_4650 { padding-bottom: 0px !important; } div#block-yui_3_17_2_1_1655210687268_49254 { padding-top: 0px !important; padding-bottom: 0px !important; } div#block-yui_3_17_2_1_1655146560514_13265 { padding-top: 0px !important; } } CelsoDiniz 1 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
CelsoDiniz Posted June 16, 2022 Author Share Posted June 16, 2022 It is just PERFECT now, THANKS!!!! 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