Marian Posted March 4, 2019 Share Posted March 4, 2019 I am a beginner at this, but want to use a different font for the first letter of a word in a title. I wonder if this is possible? I have attached the file and wish to use the "Cinzel Decorative" for the first letter of each word in the title "The Ruby Heart", and a generic serif font for the rest of the text as CD does not use lower case. index.html Link to comment Share on other sites More sharing options...
justsomeguy Posted March 4, 2019 Share Posted March 4, 2019 You can use the ::first-letter selector to target that. https://www.w3schools.com/cssref/sel_firstletter.asp If you want the first letter of each word to have that effect then you need to wrap each word with the element that you're targeting in CSS, like a span. Link to comment Share on other sites More sharing options...
shaili_shah Posted April 15, 2019 Share Posted April 15, 2019 Refer below link: https://css-tricks.com/almanac/selectors/f/first-letter/ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now