Important Notice:

Course Content
Float Property
0/1
Z-Index
0/1
CSS object-fit Property
0/1
CSS Visibility Property
0/1
CSS (Chapter 4) M2-R5.1
About Lesson

::first-letter

                इस pseudo element के द्वारा आप किसी element के content के first letter को target कर सकते है इस Element को केवल block-level Elements पर ही Apply किया जा सकता हैं। इस pseudo element के साथ आप font, color, word-spacing, letter-spacing, background आदि properties use कर सकते है।

 

::first-letter

                With this pseudo element you can target the first letter of the content of an element. This element can be applied only on block-level elements. With this pseudo element you can use properties like font, color, word-spacing, letter-spacing, background etc.

Example:

 

<html>

<head>

<style>

p:first-letter

{  

font-size:3em;  

color:blue;

}

</style>

</head>

<body>

<p>First Paragraph</p>

<p>Second Paragraph</p>

</body>

</html>

 

error: Content is protected !!