seonto Posted June 21, 2022 Share Posted June 21, 2022 (edited) Site URL: https://seonto.kr/sleeptalking Hi. I want to add a margin on the mobile only. So I add this code. @media screen and (max-width: 767px) { body { padding-left: 10px; padding-right: 10px; } } And then, I can't use the full background image anymore ;( Pc version is fine, but not the mobile. How can I setting the mobile margin with full background image? Please letting me know. Thanks! Edited June 21, 2022 by seonto Link to comment
tuanphan Posted June 21, 2022 Share Posted June 21, 2022 Change your code to this code @media screen and (max-width:767px) { body .content-wrapper { padding-left: 10px; padding-right: 10px; } } seonto 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
seonto Posted June 21, 2022 Author Share Posted June 21, 2022 39 minutes ago, tuanphan said: Change your code to this code @media screen and (max-width:767px) { body .content-wrapper { padding-left: 10px; padding-right: 10px; } } Perfect!! It works! Thank you every time ;D 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