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!

 

IMG_1384.thumb.PNG.0ec3b83990faa5bdd1c9814c511b0a88.PNG

Link to comment

Edit this code in Custom CSS

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

to this

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

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

image.thumb.png.9e2b4850362e0e8e49f08c5c48ff8bfe.png

Edited by tuanphan

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.