Jump to content

Unable to reduce margin under header.

Go to solution Solved by tuanphan,

Recommended Posts

Huge space I can't get rid of. 🥵

https://www.adventurehire.com.au/home/book-filter

As is shown in the edit mode, the text box and button are up close to the header.

But when I save and view, regardless of device, there is a huge gap (margin) between the header and the text box and button.  (Squarespace 7.1 with fluid.)

As you can see by the image below, the text box is at the top of the grid.

It looks to me as if the grid is centred on the background and I can't move the grid up higher.

This is the code behind the button, just in case that has some effect on the problem and/or solution.

<div id="#block-yui_3_17_2_6_1459644649106_53673" class="slideUp">

 <script> 

 $(window).scroll(function () {

 $('#block-yui_3_17_2_1_169821492614_1476').each(function () {

 var topOfWindow = $(window).scrollTop(),

 bottomOfWindow = topOfWindow + $(window).height();

 var imagePos = $(this).offset().top;

 if(imagePos <= bottomOfWindow-100 && imagePos >= topOfWindow-250){

 $(this).addClass('slideUp');

 }else{

 $(this).removeClass('slideUp');

 }

 });

 });

 </script>

Any help would be much appreciated.

Screenshot 2023-10-25 at 7.33.19 pm.png

Screenshot 2023-10-25 at 7.29.22 pm.png

Edited by Davo2020
Add url for further support.
Link to comment
  • Replies 1
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • Solution

I don't know this, but you can fix it temporarily by adding this code to Website Tools (under Not Linked) > Custom CSS

div#block-yui_3_17_2_1_1698213574799_4652 {
    position: relative;
}

.fe-block-yui_3_17_2_1_1698213574799_4652>div:not(:first-child) {
    position: relative;
    top: -250px;
}

 

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

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • 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.