Jump to content

css make capital letters of H1 only a different font

Go to solution Solved by tuanphan,

Recommended Posts

Posted

Hello, 

I have a custom font I want to use for my H1, but it's too stylized to use for the all letters/words.  Is there a way to target only the capital letters or lowercase letters of an H1?

Thanks!

Posted
On 1/27/2022 at 2:17 AM, angelaw said:

@tuanphan Do you know what I could add to center the whole line too?

Thanks!

use this

<h1 style="text-align:center;"><span style="font-family:monospace;">H</span>eading 1 example</h1>

 

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!)

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.