Jump to content

Need To Make Section Height Smaller On Mobile Only

Recommended Posts

  • Replies 7
  • Views 741
  • Created
  • Last Reply

Top Posters In This Topic

On 9/9/2021 at 1:49 AM, jaredvoorhees said:

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

Added a scrolling marquee to my home page but it's far too tall on mobile. I've tried a lot of different codes but none of them work. I'd also be open to just coding the scrolling marquee into the bottom of the nav menu! Either or.

Add to Design > Custom CSS

/* Marquee on mobile */
@media screen and (max-width:767px) {
[data-section-id="6137a1cf6b869e69553ea8e1"] {
    min-height: unset !important;
    padding-top: 40px !important;
}
}

 

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
  • 1 year later...

I also have a similar question on this topic..

I created a custom css background color to a line block (it is its own page within the index).  I want it to operate as section dividers on my site pages.  it works perfectly on desktop and even iPad views (see below)141206624_ScreenShot2023-01-17at2_38_03PM.thumb.png.9447bc316612b17cb441a026639e9a34.png1997485911_ScreenShot2023-01-17at2_41_54PM.thumb.png.15071ad482fdb12e60e664dc28788ae2.png

however, when I open these pages on iPhone/mobile view.. it get a much fatter/taller line height than desired.. any pointers how to fix this?

509846400_ScreenShot2023-01-17at2_38_20PM.thumb.png.d67e7c01844548ced1f84f702351efc8.png

thank you in advance for the help here!

Jess

Link to comment
48 minutes ago, jtgavic said:

I also have a similar question on this topic..

I created a custom css background color to a line block (it is its own page within the index).  I want it to operate as section dividers on my site pages.  it works perfectly on desktop and even iPad views (see below)141206624_ScreenShot2023-01-17at2_38_03PM.thumb.png.9447bc316612b17cb441a026639e9a34.png1997485911_ScreenShot2023-01-17at2_41_54PM.thumb.png.15071ad482fdb12e60e664dc28788ae2.png

however, when I open these pages on iPhone/mobile view.. it get a much fatter/taller line height than desired.. any pointers how to fix this?

509846400_ScreenShot2023-01-17at2_38_20PM.thumb.png.d67e7c01844548ced1f84f702351efc8.png

thank you in advance for the help here!

Jess

What is your site url?

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
8 hours ago, jtgavic said:

this is what I'm seeing when I "inspect element" on a chrome browser

site url: https://somethingspotted.com

image.thumb.png.7ba24cd17b18060a2bf5792503faac67.png

Add to Design > Custom CSS

@media screen and (max-width:640px) {
body#collection-636b179a5081cf760e5299db .horizontalrule-block {
    padding: 1px !important;
}
}

 

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.