Jump to content

how to reduce spacing between code and text block?

Recommended Posts

  • Replies 4
  • Views 277
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

5 hours ago, rena2938 said:

thanks, this worked for the specific block id! Is there any way to do that for all code blocks, without typing each block's ID each time?

use this code

div.code-block {
	padding-top: 0 !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!)

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.