1. Computing & Technology

Discuss in my forum

:first-line

By , About.com Guide

:first-line Description:

The :first-line pseudo-element allows you to define styles for the first line of an element.

:first-line Web Browser Support:

:first-line in CSS Versions:

:first-line Examples:

Make the font size large for the first line of every paragraph

<style>
 p:first-line { font-size:large; }
 </style> 

:first-line Special Notes:

  • You can use this to create fancy typography.

More :first-line Information:

©2012 About.com. All rights reserved.

A part of The New York Times Company.