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

: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:
Explore Web Design / HTML
About.com Special Features

The Best Web Trends of the Decade

A look back at the best innovations, ideas and technologies over the last 10 years, More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  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>

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

All rights reserved.