CSS getting started Tutorial: sinking the first word of a webpage

Source: Internet
Author: User

CSS getting started Tutorial: sinking the first word of a webpage

: First-letter

Version: CSS2 compatibility: IE5.5 +

Syntax:

Selector: first-letter {sRules}

Note:

Set the style of the first character in the object.

This pseudo object only acts on block objects. To use this attribute for inline elements, you must first set the height or width attribute of the object, set the position attribute to absolute, or set the display attribute to block.
The font-size attribute and float attribute can be used in this pseudo object to create the first-word Sinking Effect.

Example:

P a: first-letter {color: green}

Div: first-letter {color: red; font-size: 16px; float: left ;}


Easy to use.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.