LeeLee Posted October 28, 2020 Share Posted October 28, 2020 Site URL: https://sailfish-greyhound-97yf.squarespace.com/ Hi, How can I centre these whole blocks on mobile? I like the desktop version however the mobile version I would prefer for the block to be centred underneath the image for both. https://sailfish-greyhound-97yf.squarespace.com/ PW: Leanne Thanks, Leanne Link to comment
tuanphan Posted October 28, 2020 Share Posted October 28, 2020 Add to Home > design > Custom CSS @media screen and (max-width:640px) { div#block-yui_3_17_2_1_1603423462239_8173 figcaption { width: 90%; margin-top: 20px !important; margin-left: auto; margin-right: auto; } } 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
LeeLee Posted October 28, 2020 Author Share Posted October 28, 2020 Thanks Tuan! I have used this for that block and it has worked - I have used the same code with the block # for the services block however it does not centre on mobile. Link to comment
tuanphan Posted October 31, 2020 Share Posted October 31, 2020 add float: none !important; div#block-yui_3_17_2_1_1603365867922_11864 figcaption { width: 90%; margin-top: 0px !important; margin-left: auto; margin-right: auto; float: none !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
LeeLee Posted October 31, 2020 Author Share Posted October 31, 2020 Thanks Tuan! Do you have a donate link? Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.