Jump to content

How do I remove the top margin of an image block on a page where I disabled the navigation?

Recommended Posts

https://www.sonicunion.com/gfs-eos

Hello! I have two questions:

1. I used a code (below) to disable the navigation on this specific page and adjusted the padding of image block to 0 but it's still leaving a lot of space on top. It looks even bigger on mobile view. What can I do to remove that? Also is there a way to make the header image to bleed all the way to the side margins as well?

Code used:

Quote

<style>.Header, .Footer, .Mobile-bar{display:none !important; }
.sqs-block.image-block {
 padding: 0;
</style>

desktop view:

ScreenShot2023-09-10at10_20_44AM.thumb.png.16c2a8ec6127252ac4a0e3137af3854d.png

mobile view:

IMG_16E0DFCE6615-1.thumb.jpeg.4d603e40d269650d5791e8b569d6d77d.jpeg

 

2. I have a carousel gallery block on this page. Is there a way to adjust the height to be much larger on mobile view?

IMG_FBF6605AB9E2-1.thumb.jpeg.f2ef57ac856f882b40b3e69fbc31efde.jpeg

Link to comment
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

This is not a solution but should get you closer.

.Main-content {

  padding-top : 0;
  
  }

@media screen and ( min-width : 641px ) {

  .Main-content {
  
    padding-left : 0;
    padding-right : 0;
    
    }
    
  }

@media screen and ( max-width : 640px ) {

  .sqs-layout .sqs-row .sqs-block:first-child {
  
    padding-top : 0 !important;
    
    }
    
  }

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment

Hello @creedon

I have a pre existing code to hide the navigation.

Quote

<style>.Header, .Footer, .Mobile-bar{display:none !important; }
.sqs-block.image-block {
 padding: 0; 
}
</style>

When I inject your code before <style> or after </style>, it looks like this:

GFSEndofSummerMixerSonicUnionNYCCreat.thumb.png.fe455389fa5edcad9f45ea30638cb44b.png

When I inject your code before </style> I don't see any difference.

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.