Best way to put a drop case to the first letter #3454
-
Hello everybody, I tried adding the drop case to the first letter of the first paragraph on the blog post alone. What is the best way I can manage to select the first paragraph of the blog post only? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Restrict your CSS selector to another HTML class, then add .example-class .page__content > p:first-of-type:first-letter {
// Your CSS here
} ---
title: Blah
classes: example-class
---
Post content This is what I'm doing when I want to add page-specific CSS. |
Beta Was this translation helpful? Give feedback.
Restrict your CSS selector to another HTML class, then add
classes: example-class
to your posts where you want to enable this feature, like this:This is what I'm doing when I want to add page-specific CSS.