stwarsy Posted August 26 Share Posted August 26 (edited) Hello, I recently started working on a client's website and noticed that the header is getting cut off on the left and right sides on the mobile version. Can anyone help adjust the coding to fix this? I think there may be custom css that is causing this to happen. Thank you! https://www.laurenscruggskennedy.com/ Edited August 26 by stwarsy Forgot to add URL Link to comment
Solution tuanphan Posted August 28 Solution Share Posted August 28 You try this to Website Tools > Custom CSS @media screen and (max-width:767px) { section[data-section-id="612fbfd85b1b9166e63e3517"] { min-height: unset !important; margin-top: 50px; } } 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
stwarsy Posted September 2 Author Share Posted September 2 On 8/27/2024 at 11:34 PM, tuanphan said: You try this to Website Tools > Custom CSS @media screen and (max-width:767px) { section[data-section-id="612fbfd85b1b9166e63e3517"] { min-height: unset !important; margin-top: 50px; } } This worked perfectly. Thanks so much!! Link to comment
stwarsy Posted September 3 Author Share Posted September 3 On 8/27/2024 at 11:34 PM, tuanphan said: You try this to Website Tools > Custom CSS @media screen and (max-width:767px) { section[data-section-id="612fbfd85b1b9166e63e3517"] { min-height: unset !important; margin-top: 50px; } } Hi @tuanphan - I added the code to the site yesterday, and the mobile header looked great. However, I just checked again this morning and it looks like it somehow went back to how it was when I created the ticket. Do you mind taking a look? Thanks! Link to comment
tuanphan Posted September 7 Share Posted September 7 On 9/3/2024 at 5:26 PM, stwarsy said: Hi @tuanphan - I added the code to the site yesterday, and the mobile header looked great. However, I just checked again this morning and it looks like it somehow went back to how it was when I created the ticket. Do you mind taking a look? Thanks! I think you removed it and add new section so ID changed. Use this new code @media screen and (max-width: 767px) { section[data-section-id="6513359437608629d2672aca"]{ min-height:unset !important; margin-top: 50px; } } 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
stwarsy Posted Saturday at 07:26 PM Author Share Posted Saturday at 07:26 PM On 9/6/2024 at 8:57 PM, tuanphan said: I think you removed it and add new section so ID changed. Use this new code @media screen and (max-width: 767px) { section[data-section-id="6513359437608629d2672aca"]{ min-height:unset !important; margin-top: 50px; } } I don't think I added a new section for the header, but thank you for providing new code for the section! I tried that in the other code's place and still see the header going off the edges of the page on mobile. I think what I updated after adding the original code you sent over was that this site was on the old Squarespace builder, and it was showing the option to use the fluid engine editor. Would that prevent the code you've provided from working? Thank you!! Link to comment
tuanphan Posted 20 hours ago Share Posted 20 hours ago I think it is fine now 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
Create an account or sign in to comment
You need to be a member in order to leave a comment