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

Link to comment
  • Replies 3
  • Views 958
  • Created
  • Last Reply
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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

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.