Jump to content

Remove space in code block in 7.0

Recommended Posts

How do I get rid of all that extra space in 7.0.  In 7.1 it's minute because it's just code AND it does not show up as an extra space but this code takes up space in editing mode and throws off the paragraph spacing in live mode.  My only alternative is to take this and put this in CSS but I have enough stuff in there and just need this code on this page.  Is there a way to make that smaller or at least invisible when I am looking at it from the live version?  Thanks.

image.thumb.png.8a8b4484143ed191296e7f49898fffb1.png

Link to comment
  • Replies 2
  • Views 158
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

7 hours ago, MoeTalks said:

How do I get rid of all that extra space in 7.0.  In 7.1 it's minute because it's just code AND it does not show up as an extra space but this code takes up space in editing mode and throws off the paragraph spacing in live mode.  My only alternative is to take this and put this in CSS but I have enough stuff in there and just need this code on this page.  Is there a way to make that smaller or at least invisible when I am looking at it from the live version?  Thanks.

image.thumb.png.8a8b4484143ed191296e7f49898fffb1.png

Add these code on Custom CSS panel in Website Utilities Website Tools > Custom CSS.

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

 

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment

Thank you for that.  But that did not work but I went into the inspector and found this and this works.

.sqs-block-spacer {
  padding-top: 0!important;
  padding-bottom: 0!important;
  min-height: 0vh!important;
}
I've added that to my css since I want that ability on anything that's related to 7.0 if i have to create something in 7.0.  Thank you again @Web_Solutions for pointing me to the right direction.

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.