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

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

::first-line

      This pseudo element is used to target the first line of content of an element. This element can also 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-line

{  

font-weight:bold;

}</style>

</head>

<body>

<p>First Paragraph First Line<br>First Paragraph Second Line</p>

<p>Second Paragraph First Line<br>Second Paragraph Second Line</p>

</body>

</html>

 

error: Content is protected !!