CSS language notes & lt; 2 & gt; and css language notes

Source: Internet
Author: User

CSS language notes <2>. css language notes
CSS attribute size attribute

All html elements have width and height. In CSS, px is used to indicate the size. You can also use the percent sign "% ".

Px: pixel

Width: width

Height: height

Border: border

Padding: padding

Margin: margin

Backgroun: Background

Font attributes

Font-family: Set the font

Font-weight: width, value: bold (bold)

Font-style: italic; Value: italic (italic)

Font-size: Text size

Font: abbreviated form

Text attributes

Color: color, value: can be a word, 10 hexadecimal, or 16 hexadecimal

Text-align: horizontal alignment of text; Value: left, center, right)

Text-decoration: modifier line. Values: none, underline, overline, and line-through)

Text-indent: indent the first line, expressed in pixels, for example, text-indent: 24px; indent 24 pixels.

Letter-spacing: The spacing of words, same as above, in pixels.

Line-height: The Row height, same as above. It can be expressed in percentages or pixels.

 

 

 

 

 

To be continued ....

 

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.