conorclinch Posted March 31, 2020 Share Posted March 31, 2020 Site URL: http://www.conorclinch.com/shop Hi, I've launched a shop on my website (www.conorclinch.com/shop) and I'm trying to adjust the left margin on the page on desktop ONLY. The mobile site looks perfect but the product elements aren't in the centre on the desktop version. I've tried to below CSS code however it also alters the mobile device. Quote #collection-5e8216d7d6fbed74371df1c6 #page { margin-left: 100px; padding: 0px 0px; } Please can someone help me adjust this code so that it works on desktop only? Thanks Conor Link to comment
tuanphan Posted March 31, 2020 Share Posted March 31, 2020 @media screen and (min-width:641px) { #collection-5e8216d7d6fbed74371df1c6 #page { margin-left: 100px; padding: 0px 0px; } } 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
conorclinch Posted March 31, 2020 Author Share Posted March 31, 2020 Thank you so much! It works for mobile/desktop now (they both look great) but the iPad still looks a little odd. I've tried playing around with the min-width but not sure what the min for iPad is. Could you help with this? See attached how the iPad layout is looking. Link to comment
conorclinch Posted March 31, 2020 Author Share Posted March 31, 2020 Don't worry - I fixed it. I put the min-width to 800px and it seems to have worked. Thanks! Link to comment
tuanphan Posted March 31, 2020 Share Posted March 31, 2020 try 901px 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.