Jump to content

Anchor Links & Customizing a Table of Contents

Recommended Posts


So I was testing how to make a table of contents on an older post of mine using anchor links, and it seemed to work out pretty well. My only issue is that the space between the code block with the title and my paragraphs is now massive in mobile view. Does anyone have any advice? I included screenshots for reference. 



Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

You try adding this code to Design > Custom CSS to reduce Code Block padding on mobile

@media screen and (max-width:767px) {
	.code-block {
		padding: 0px !important;
		height: 1px !important;


Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.