Skip to content

Best way to put a drop case to the first letter #3454

Answered by iBug
kulbhushanchand asked this question in Q&A
Discussion options

You must be logged in to vote

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:

.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.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@kulbhushanchand
Comment options

@iBug
Comment options

iBug Feb 16, 2022
Collaborator

@mmistakes
Comment options

@kulbhushanchand
Comment options

Answer selected by mmistakes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants