Jump to content

Reduce padding above image block, Wells template mobile

Recommended Posts

I have an image block on the home page of my website, a single image. It looks fine on the desktop version but on the mobile version there is a big white space above the image. This means that visitors will see the title, menu and social media icons, then a large white space, and then only half of the image is visible, have to scroll down to see whole of image. Can I add custom css to fix this? (My other images are in image galleries and don't have this problem.)Any help is much appreciated!

sqspace-wells-homepage.jpg.bae2534d0186efca144679dccbd738f9.jpg

Link to comment
  • Replies 6
  • Views 661
  • Created
  • Last Reply

Actually it is possible! I looked at a lot, a lot, of posts on this forum and found a solution. Not perfect but a big improvement.added this to the css. I played around with the margin-top figure until it worked for me.


1. @media screen and (max-width: 700px) {
2. 

.sqs-block-horizontalrule 3. {max-width: 100%} 4. .sqs-block-content hr { 5. margin-top: -33px !important; 6. margin-bottom: -33px !important; 7. } 8. .Main-content { margin-top: -20px !important; 9. margin-bottom: -82px !important; 10. } 11. .sqs-block-html {margin-top: -40px; 12. padding-bottom: 7px; 13. } 14. } 15. .Mobile-bar--top { 16. padding-top: 0px !important; 17. margin-bottom: -20px !important; 18. }

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.