Practice CSS :first-letter pseudo element
First character of this paragraph will
be normal and will have font size 40 px;
The first character of this paragraph will be 3em big
and in red color as defined in the CSS rule above. Rest of the
characters in this paragraph will remain normal. This example
shows how to use :first-letter pseudo element to give effect to
the first characters of any HTML element.
This css code I have use but instead
I want to use
First character of this paragraph will
be normal and will have font size 40 px;
The first character of this paragraph will be 3em big
and in red color as defined in the CSS rule above. Rest of the
characters in this paragraph will remain normal. This example
shows how to use :first-letter pseudo element to give effect to
the first characters of any HTML element.
and want same result: