Jump to content

CSS to reduce space either side of text and buttons in mobile view of list sections

Recommended Posts

Site URL: https://sadiespikescuriouscabinet.com/alternative-art-school-bristol

Hi, I'm looking to reduce the amount of space each side of text and buttons in a list section on mobile view only.

The web copy is being displayed in a narrow central area meaning that some of the words, and specifically the buttons are forced to drop vertically over several lines, rather than run across one line horizontally.

Does anyone know of a css fix for this please? Thanks!



Link to comment

Edit this code in Custom CSS

@media only screen and (max-width: 640px) {
    .sqs-block-button-element {

to this

@media only screen and (max-width: 640px) {
    a.sqs-block-button-element:not(.list-item-content__button) {

also, I see you are using some invalid font face code (the urls in code doesn't exist)


Edited by tuanphan

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.