Jump to content

Edit page elements for mobile only (without affecting desktop) on 7.1

Recommended Posts

Hi. I'm trying to find a way to edit some page elements for mobile only (without affecting desktop) on Squarespace 7.1. The support told me it could be done only by custom css.

What I'm trying to do is fix the alignment of a code element that looks nice on the homepage desktop but not aligned on mobile view. Also some elements on the footer. If anybody knows what code could I use that would be great.

Thank you in advance!

Link to comment
  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

On 5/17/2021 at 2:50 PM, Tapaz said:

Yes, thanks! What I'm trying to change is the "order online" part where you can see 3 food delivery icons, and they are not aligned on mobile.

https://www.tapaz.co.uk

Can you check icons? I see error here

image.thumb.png.5ed841ad74a91a699088e99695e8b33a.png

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
23 hours ago, Tapaz said:

It could be one under the other... or in the same line, whichever is easier

Add to Design > Custom CSS

/* 3 icons side by side */
@media screen and (max-width:767px) {
.image123 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}
.image123>a {
    display: block !important;
    width: 33.333% !important;
}
.image123 img {
    margin-left: 0;
}
}

 

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.