Jump to content

Is the :after selector broken?

Recommended Posts

I'm trying to add a decorative line after all H1 on my Bedford site, but this code isn't working. 

h1:after {
 background-color: #e99923;
 width: 80px;
 height: 4px;
I can affect all H1 with different code (changing the background color), but using the :after selector doesn't seem to have any effect. Any thoughts? 
Link to comment
  • Replies 1
  • Created
  • Last Reply


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.