Jump to content

Add Tight Background to Text

Recommended Posts

  • Replies 1
  • Views 397
  • Created
  • Last Reply

FYI - I figured it out.

Simply add the following CSS code to your site and adjust as needed:

/New h1 heading style/h1 em,h1 em {background-color: #3e00d6;box-shadow: 0.2em 0 0 #3e00d6, -0.2em 0 0 #3e00d6;}

This means when you italicize your H1 heading on your site, it will add the background to the text. You can play with the borders/shadow and the color to get the look you want.

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.