DIY | Library | Accordion Block

CSS

Styling Squarespace Accordion Blocks with CSS

This post is all about making CSS adjustments to the Squarespace CSS accordion block. Accordion blocks are great for condensing content, but their default styling can be limiting. Below, you’ll find helpful accordion-style sections full of CSS snippets to adjust padding, icons, animations, background colours and more.

I’ll be adding new code over time as I come across it in projects, so feel free to check back or email me at sarah@foubography.com if you need help with something specific.

 

Just paste this bit of code in Design > Custom CSS and adjust accordingly.

  • /* Accordion: Text */

    .sqs-block-accordion .accordion-items-container {

    text-transform: lowercase !important;

    font-family: courier;

    line-height: normal !important;

    }

    /* Accordion: Text END */

  • /* Accordion Justify Text */
    .sqs-block-accordion .sqs-block-content {
    text-align: justify !important;
    }

 

Related posts

This post is part of the DIY | LIBRARY —a growing collection of practical code snippets designed for Squarespace users who want to take control of their site’s design and functionality. Whether you’re tweaking your navigation, adjusting your mobile menu, or styling buttons, these copy-paste solutions are clean, reliable, and built with SEO and usability in mind. Bookmark this space for easy access to Squarespace custom code that works.

Sarah Foubert

I’m a photographer and Squarespace web designer based in Altrincham, South Manchester. I specialise in portrait, landscape and opera photography and also offer a “complete website package” where I can offer headshots, photos of your business and design your new website so you can manage it yourself afterwards.

Over the years I’ve built a portfolio career as a professional photographer, opera singer, wardrobe assistant and singing teacher. I have a MMus from the RNCM, a Bachelor in Theatre Sciences and Musicology from Ghent University and I’m a qualified teacher. When my son was born in 2021 I quickly realised that an opera career wasn’t as compatible with being a mum as much as I would like, so I decided to change my focus completely to photography and web design.

I prefer working with daylight in casual surroundings while having a chat making sure you’re at ease and relaxed. It’s the little moments in between that make the best shots!

Feel free to get in touch if you’d like to work with me!

http://www.foubography.com
Previous
Previous

DIY | Library | Images

Next
Next

DIY | Library | Gallery Block