Jump to content

Reduce underline padding on mobile

Recommended Posts

Site URL: https://www.bbarinaga.com/estrategia-de-engagement

site: https://www.bbarinaga.com/estrategia-de-engagement

password: 1234

 

Hi!

I'm using the following code to underline my H1 page titles:

h1.page-title span {
    border-bottom: 4px solid #ffe94a;
    padding-bottom: 0px
}

It looks great on desktop, however, the line doesn't look right on mobile (see screenshot).

Is there any way I can reduce the padding bottom only on mobile?

I appreciate any help!

 

WhatsApp Image 2020-11-16 at 11.50.23.jpeg

Edited by bbarinaga
Link to comment

Hi

This is not your answer but this will fix your problem. Use this code in Design -> Custom CSS

@media screen and (max-width:640px){
h1.page-title span {
    font-size: 90%;
    line-height: 45px;
}
}

Please use the like button if it helps you!

Best,
Leopold

Ninja Kit Extension: Upgrade your Squarespace website without coding.

YouTube Preview    -    FREE DOWNLOAD

Link to comment
On 11/16/2020 at 9:53 PM, bbarinaga said:

Thank you so much,

I see your site has big gap on tablet. You can add this to Design > Custom CSS to fix this.\

/* tablet big gap */
@media screen and (max-width:900px) and (min-width:641px) {
body#collection-5f5a281e49aa5b77e414b155 div#content {
    padding-top: 0;
}
}

image.thumb.png.aa61d9aaf916545edf9419a014f9140c.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

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.