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 571
  • Created
  • Last Reply
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

Archived

This topic is now archived and is closed to further replies.


×
×
  • 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.