Skip to content

How to make only placeholder italics in tailwind CSS ? #201

Answered by d4tdev
montasim asked this question in Q&A
Discussion options

You must be logged in to vote
  1. You can use like this:

class="placeholder:italic"

  1. Define this

@layer utilities {
.placeholder-italic::placeholder{
@apply italic
}
}

And use

class="placeholder-italic"

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by montasim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants