1. Home
  2. Computing & Technology
  3. Web Design / HTML

:first-line

By Jennifer Kyrnin, About.com

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

Explore Web Design / HTML

More from About.com

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. CSS
  5. CSS Pseudo Properties
  6. The :first-line Pseudo-Element - CSS 1 XHTML 1.0 HTML 4.0

©2008 About.com, a part of The New York Times Company.

All rights reserved.