Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
BottleRocket1

How to remove mystery white space on mobile

Question

Site URL: https://www.bottlerocketrecording.co.uk/

Hi @tuanphan, @RyanDejaegher, @paul2009, @bangank36, @christyprice

I've recently redesigned my site – transferring from Pacific to Brine. I'm pretty much there now apart from some frustrating glitches on mobile view, as explained below.

On mobile: The header at the top keeps mysteriously adding 8px + worth of padding to the top and bottom which is contributing to – if not wholly – causing it to obscure my section headings when using index scrolling from the hamburger menu. I've isolated the .mobile bar section and removed 8px with CSS but if you compare it to the desktop view there is clearly still more white space added around my branding box. Cosmetically – I'd obviously rather it were thinner but it's not that big a deal, but I do need it not to obscure my headings during scrolling, so it has to be fixed one way or another.

On Mobile, BLOG PAGE: There is another mystery white space between the "Notes from the Studio" intro Banner and the nav/branding bar at the top. I've tried reducing padding to that area using CSS and site styles. In most cases just causes the "notes from the Studio" banner to be chopped into. I've also tried that banner image in a number of different shapes and sizes and always get the same issue. Furthermore there have been many occasions where I seem to have fixed it – I go to my mobile device immediately after editing and it displays perfectly as as it should. Then then on reloading the page – the white space jumps back – almost saying "WAIT, I'M STILL HERE!, pushing the banner down again. This has been incredibly frustrating, especially when resizing and adjusting the padding to the "notes from ..." image block. In the section editor, Squarespace will show that I've solved the problem – everything looks fine – and then I open it on my actual phone and the white space is either still there or I've chopped the top or bottom off my banner. My only conclusion is there must be some rogue code somewhere that's over-riding everything or even a ghost block that can't be deleted that is pushing things to flow around it.

Hoping someone can shed some light!

Thanks!

Screen Shot 2020-06-16 at 15.26.59.png

Screen Shot 2020-06-16 at 15.27.15.png

Share this post


Link to post

4 answers to this question

Recommended Posts

  • 0
Posted (edited)
@media screen and (max-width:960px) {
	.Index-page-content {
		padding-top: 120px;
		padding-bottom: 120px;
	}
}

@media screen and (max-width:640px) {
	.Index-page-content {
		padding-top: 60px;
		padding-bottom: 60px;
	}
}

This is what is causing the headings to be cut off, squarespace is shrinking the padding at a screen width of 640px

@media screen and (max-width:640px) {
	.Index-page-content {
		padding-top: 80px !important;
		padding-bottom: 80px !important;
	}
}

This should fix it.

@media screen and (max-width:960px) {
	#block-yui_3_17_2_1_1592315790530_4759 {
    	display: none;
	}
}

There's a spacer in your blog page on mobile, that will hide it.

Edited by rwp

Free Squarespace 7.1 Anchor Link and Accordion Plugins available here!

If I replied to one of your questions with code, it was either CSS or jQuery.

To add CSS, go to Design -> Custom CSS

jQuery needs some additional steps. Head here: https://code.jquery.com/ and click on minified, under jQuery 3.x and copy that code into Squarespace.

After you put that code into the code injection section in Squarespace, you can add the code I supplied. The code from me will need <script> added before it and </script> added after it (only for jQuery).

There are two places that you can add the code, one is site wide (adds to all pages). Settings -> Advanced -> Code Injection

The other is for a specific page (adds to one page only). Pages -> Gear Icon next to the page -> Advanced

Share this post


Link to post
  • 0

Hi @rwp,

Thanks so much, you're a life saver!

There's still proportionally more white space above the "Notes from the Studio" text on the blog page – is there any code that can remove more white space proportionally without touching site styles?

Thanks again,

Jonny

Share this post


Link to post
  • 0
@media screen and (max-width:960px) {
    #block-yui_3_17_2_1_1587978949387_4455 {
        margin-top: -50px;
        padding-bottom: 0px !important;
        margin-bottom: -10px;
    }
}

Give that a go.


Free Squarespace 7.1 Anchor Link and Accordion Plugins available here!

If I replied to one of your questions with code, it was either CSS or jQuery.

To add CSS, go to Design -> Custom CSS

jQuery needs some additional steps. Head here: https://code.jquery.com/ and click on minified, under jQuery 3.x and copy that code into Squarespace.

After you put that code into the code injection section in Squarespace, you can add the code I supplied. The code from me will need <script> added before it and </script> added after it (only for jQuery).

There are two places that you can add the code, one is site wide (adds to all pages). Settings -> Advanced -> Code Injection

The other is for a specific page (adds to one page only). Pages -> Gear Icon next to the page -> Advanced

Share this post


Link to post

Create an account or sign in to comment

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


×
×
  • Create New...