reneel2020 Posted June 13, 2020 Share Posted June 13, 2020 Site URL: https://www.daofinancialsolutions.com/video-quote-tool Hello, I need help with CSS to reduce an image size to be mobile friendly. Right now, the headshot image is huge and takes up the whole page. All the coding I tried is not reducing the size for some reason. I think I have the div id wrong. Home someone can help, please? Code I've tried: @media screen and (max-width:640px) { /* Jermane headshot */ id#yui_3_17_2_1_1592055168751_102 { float: left !important; width: 25% !important; } id#yui_3_17_2_1_1592055168751_102{ width: 100% !important; height: auto !important; } id#yui_3_17_2_1_1592055168751_102 { padding-top: 0 !important; padding-bottom: 0 !important; } } Link to comment
tuanphan Posted June 13, 2020 Share Posted June 13, 2020 Add to Home > Design > Custom CSS @media screen and (max-width:640px) { div#page-5ee4bfc1c0fbed78bd58409f .span-12 .span-2 { width: 50% !important; margin: 0 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
reneel2020 Posted June 13, 2020 Author Share Posted June 13, 2020 Awesome! This worked, thank you! Any way I can get this text to be smaller in mobile so the text and image can be on the same line, as it is on desktop view? Link to comment
tuanphan Posted June 13, 2020 Share Posted June 13, 2020 @media screen and (max-width:640px) { div#page-5ee4bfc1c0fbed78bd58409f .span-12>.row>.col { width: 50% !important; float: left !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
reneel2020 Posted June 13, 2020 Author Share Posted June 13, 2020 This worked, thank you! Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.