Jump to content

Reduce Padding Above Home Page Slider

Recommended Posts

Posted

Site URL: https://www.hawkcustomhomes.com

I fixed the display of my slider images in mobile - they now display nicely rather than cropping them. However, I now get odd padding above the home page slider on mobile view. It is fine on desktop but not on mobile. After reading threads in the forum I added this code with my data-section-id to Design> Custom CSS. 

[data-section-id="5f346df87abe3a49efe960c4"] .content-wrapper {padding-top: 2px !important; padding-bottom: 10px !important;}

But it still isn't working - can someone please help - I have been fighting to get this slider looking right on mobile for a few days now. Thank you so much~

Megan

  • Replies 5
  • Views 363
  • Created
  • Last Reply
Posted

Thank you so much! I updated the code... The images layout nicely - but I still want to reduce the padding at the top.   Is it possible to remove the space or is just maybe the way Squarespace resolves on mobile?  When I inspect I view the sections everything with the slider looks correct regarding size - so maybe the extra padding is reducing the div class="header-announcement-bar-wrapper"  the size is 574 109?

 

image.png

Screen Shot 2021-06-24 at 7.21.41 PM.png

Posted
On 6/30/2021 at 9:35 AM, Inspyre03 said:

I'm sorry   - I was able to figure how to fix the padding above the home slider. But now I have padding above the header image on the team page. I have tried a couple options but I can't figure out how to reduce the spacing above the image. 

https://www.hawkcustomhomes.com/team

Add to Design > Custom CSS

/* team page padding */
body#collection-5f0dbe5abfa4f919d0361d07 article section:first-child {
    padding-top: 100px !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!)

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.