Jump to content

Custom CSS for Changing the Height of Buttons on Mobile Only

Recommended Posts

  • Replies 4
  • Views 1.1k
  • Created
  • Last Reply
Posted
3 hours ago, harvestfilmco said:

Site URL: https://www.harvestfilmco.com/

I would like to change the height of the two buttons on my home page (on mobile only) so that they are centered over the photos. What is the custom css input to change the height of the buttons on mobile only?

Screen Shot 2020-12-29 at 3.06.45 PM.png

Try this custom css

@media only screen and (max-width: 768px) {
        #block-yui_3_17_2_1_1609256643007_5560 {
          position: fixed;
          top: 25vh;
        }
        #block-yui_3_17_2_1_1609256643007_6227 {
          position: fixed;
          bottom: 12.5vh
        }
}

image.png.870800757e5ecda76711681e5422a7b6.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> No-code customisations for Squarespace

Posted
17 hours ago, bangank36 said:

Try this custom css


@media only screen and (max-width: 768px) {
        #block-yui_3_17_2_1_1609256643007_5560 {
          position: fixed;
          top: 25vh;
        }
        #block-yui_3_17_2_1_1609256643007_6227 {
          position: fixed;
          bottom: 12.5vh
        }
}

image.png.870800757e5ecda76711681e5422a7b6.png

Thank you! Worked like a charm.

Posted

@harvestfilmco I see on tablet, the navigation items are't on same line. You can add this to Design > Custom CSS to fix this.

/* tablet navigation */
@media screen and (max-width:900px) and (min-width:641px) {
.Header-inner.Header-inner--top {
    flex-direction: column;
    padding-top: 0;
}
}

image.thumb.png.e857a4bb8af05d8c4688e2fa8d9c906c.png

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!)

Posted
On 1/5/2021 at 4:47 AM, tuanphan said:

@harvestfilmco I see on tablet, the navigation items are't on same line. You can add this to Design > Custom CSS to fix this.


/* tablet navigation */
@media screen and (max-width:900px) and (min-width:641px) {
.Header-inner.Header-inner--top {
    flex-direction: column;
    padding-top: 0;
}
}

image.thumb.png.e857a4bb8af05d8c4688e2fa8d9c906c.png

I never noticed that until now! Thank you! Worked like a charm.

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.