Jump to content

Add Text Decoration

Recommended Posts

  • Replies 1
  • Views 280
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Add a Code Block > Paste this code

<h1><span>Heading 1</span></h1>
<style>
 h1 span {
   position: relative;
         }
  h1 span:after {
    content: "";
    background-color: yellow;
    position: absolute;
    bottom: 0px;
    height: 40px;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
  }

</style>

 

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.