'first-line' Example : first line « CSS « HTML / CSS






'first-line' Example

    
<html>
<head>
<style>
p:first-line { font-size:200%; color:red; }
</style>
</head>
<body>
<p>This is the first line of a sample text.
text text text text text text text text text 
text text text text text text text text text text 
text text text text text text text text text text text 
text text text text text text text text text text text text 
<br>
This is the second line.
</p>
</body>
</html>

    
      
      








Related examples in the same category