Jump to content

How to underline headings?

Recommended Posts

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

I found a workaround to achieve that:

1) I make the h4 a hyperlink (using "#" as url)

2) I create a code block in the page and add the following css:

h4 > a {
    text-decoration: none !important;
    padding-bottom: 4px;
    border-bottom: 4px solid #beb7ad;
    cursor: default;
    background-image: none !important;
}

It's not perfect but that do the job for now 🙂

EDIT: to remove the hover effect, add:
 

  h4 > a:hover { opacity: 1 !important; }

 

Edited by GSv
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.