Jump to content

Unequal spaces between blocks

Go to solution Solved by MiguelFerrao,

Recommended Posts

  • Replies 9
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Can you share your website URL and this page?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

Have you got any custom CSS of code injected into the website?

This seems to be the problem, the first blocks have their padding top/bottom removed:

.sqs-layout:not(.sqs-editing) .sqs-row .sqs-block:not(.float):not(.sqs-feature-gated-wrapper):first-child:last-child {
    padding-bottom: 0;
}
.sqs-layout:not(.sqs-editing) .sqs-row .sqs-block:not(.float):not(.sqs-feature-gated-wrapper):first-child {
    padding-top: 0;
}

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
Posted (edited)

I do have @Ziggy, all over. 

CUSTOM CSS:

a#site-title {
    font-family: BioRhyme Expanded!important;
  font-style: italic!important;
}

a:link {text-decoration:none!important;}

a:visited {text-decoration:none!important;}

a:hover {color:white !important;}

a:active {text-decoration:underline!important;}

.header#header {position: fixed!important;
  background-color: transparent!important}

/* Change Line Color */
.sqs-block-horizontalrule hr {
background: #c0c0c0!important;
}

.btn:first-of-type
{display: none!important}

.btn:nth-child(2)
{margin-left: 35px!important}

.btn:hover {
color: black!important;
background-color: white!important;
transition: 0.2s!important;
text-decoration: none!important}
 

CODE INJECTION:

Varies across the website.

Here is an example on that specific page: https://www.musaparadisiaca.net/projects

<style> body
{background-color: #E6E6E6;}
#canvas {background-color: #E6E6E6;} 
</style>

<style>
#header .header-nav-item:nth-child(1) {display:none}
#header .header-nav-item:nth-child(2) {display:none}
#header .header-nav-item:nth-child(3) {display:none}
#header .header-nav-item:nth-child(4) {display:none}
#header .header-nav-item:nth-child(5) {display:none}     
@media screen and (max-width:1511px){#header .header-menu-nav-item:nth-child(1) {display:none}}
@media screen and (max-width:1511px){#header .header-menu-nav-item:nth-child(2) {display:none}}
@media screen and (max-width:1511px){#header .header-menu-nav-item:nth-child(3) {display:none}}
@media screen and (max-width:1511px){#header .header-menu-nav-item:nth-child(4) {display:none}}
@media screen and (max-width:1511px){#header .header-menu-nav-item:nth-child(5) {display:none}}  
</style>

<script>
  $( ( ) => {
    /*
      add buttons to header
      SS Version : 7.1
      */
    let buttonsNewData = [
      {
        buttonText : 'PT',
        url : 'https://www.musaparadisiaca.net/projectos'   
        }    
      ]
    
    // do not change anything below, there be the borg here
    
    $( '.header-actions-action--cta, .header-menu-cta' ).each ( function ( ) {
    
      let $this = $( this );
      
      $.each ( buttonsNewData, function ( index, buttonNewData ) {
      
        let $buttonNew = $( '.btn:first', $this )
        
          .clone ( )
          
          .attr ( 'href', buttonNewData.url )
          
          .text ( buttonNewData.buttonText )
          
          .appendTo ( $this );
          
        } );
        
      } );
      
    } );
    
  </script>

Edited by MiguelFerrao
Link to comment

Does this problem go away if you temporarily remove the code injection and CSS? After backing it up!

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

Did you do a proper page refresh after removing the code? or checking in incognito to bypass any cache issue?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
  • 2 weeks later...
  • Solution

I to everyone. The solution has been found by @jaeveedee.

Quote

You could try this. It probably has something to do with how your blocks are laid out there but without rearranging things in your site I can't really tell. This code should fix it. If it doesn't right away just leave the code in and let me know.

.sqs-layout:not(.sqs-editing) .sqs-row .sqs-block:not(.float):not(.sqs-feature-gated-wrapper):first-child:last-child {
  padding-bottom: 17px !important;
}

 

Edited by MiguelFerrao
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.