Jump to content

Code block rendering weird top padding

Recommended Posts

Site URL: https://cone-tuna-x47f.squarespace.com/

 

I created some tabs on the Services page with this code tutorial: https://www.will-myers.com/articles/adding-simple-tabs-to-your-website-in-squarespace-71-and-70

Unfortunately, it did not render well for Mobile and the tabs were cutting off. I managed to alter the code so that the tabs did not cut off, but now there is a big chunk of padding above that is technically the code block itself... wanted to see if anyone had any thoughts on how to adjust this?

https://cone-tuna-x47f.squarespace.com/ pw: haircare

Screen Shot 2021-09-23 at 9.17.26 AM.png

Link to comment
  • Replies 3
  • Views 519
  • Created
  • Last Reply

Top Posters In This Topic

On 9/30/2021 at 12:25 AM, happyscone said:

Try adding to Design > Custom CSS

/* white padding above tabs */
@media screen and (max-width:767px) {
.tabs-container {
    margin-top: -100px;
}
}

 

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.