Jump to content

Remove Code blocks white space

Recommended Posts

Posted

Hello everyone,

I'm working for a client that required some embed videos from Wistia platform. I'm getting some unwanted white space that becomes even worst on mobile version.

I've tried everything I read here on the forums but nothing seems to be working for me. 

Nor this:

.sqs-block.code-block.sqs-block-code {
    margin-top: 0px !important;
    margin-bottom: 0px !important;
}

.sqs-block.code-block.sqs-block-code {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

or this one:

.code-block {

padding: 0px !important;

}

even both seems to be working for some users on the forum.

I attach my embed code and some screens of the problem. Also a screen where you can see I can make it smaller in the editor.

This is my testing site:

https://mouse-crane-bnah.squarespace.com/

pass: MOTA

 

Thanks in advance for your help

 

1 Desktop unwanted space.png

2 mobile unwanted space.png

3 Desktop unwanted space 2.jpeg

4 mobile editor.png

5 embed code.png

  • Replies 6
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

Posted
On 1/10/2023 at 12:42 AM, hugo09 said:

Hi @tuanphan also on Desktop. On mobile as you can see it gets worst, but in some pages of the real website desktop is also a problem.

Thanks in advance

Add to Design > Custom CSS

@media screen and (max-width:767px) {
.fe-63b81e71749cfd76f873d674 {
    grid-template-rows: repeat(8,minmax(24px, auto)) !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!)

Posted

Hello!

this is working, but I have to apply one by one each video, in the future the client is going to upload more on their own so it's not a good option.

is there not a way to affect all code blocks??

Thanks for you help again

Posted
On 1/17/2023 at 12:27 AM, hugo09 said:

Hello!

this is working, but I have to apply one by one each video, in the future the client is going to upload more on their own so it's not a good option.

is there not a way to affect all code blocks??

Thanks for you help again

No way. You can consider using Classic Editor for these sections.

To add Classic Editor, do this

classic.png

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!)

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.