CSS Learning 1

Source: Internet
Author: User

CSS Learning 1

Background attributes

Attribute Description
Background This attribute is short for setting the background attribute in a declaration.
Background-attachment Whether the background image is fixed or scrolled with the rest of the page.
Background-color Set the background color of the element.
Background-image Set the image as the background.
Background-position Set the start position of the background image.
Background-repeat Set whether or not the background image is repeated.

Text attributes

Attribute Description
Color Set text color
Direction Set the text direction.
Line-height Set the Row Height.
Letter-spacing Set the Character spacing.
Text-align Align the text in the element.
Text-decoration Add modifier to text.
Text-indent The first line of text in the indent element.
Text-shadow Set text shadow. CSS2 contains this attribute, but CSS2.1 does not retain this attribute.
Text-transform The letters in the control element.
Unicode-bidi Set the text direction.
White-space Set the blank Processing Method in the element.
Word-spacing Set the padding.

Font attributes

Attribute Description
Font Attribute. The function is to set all font attributes in a declaration.
Font-family Set the font family.
Font-size Set the font size.
Font-size-adjust When the preferred font is unavailable, intelligently scale the replaced font. (CSS2.1 deleted this attribute .)
Font-stretch Horizontally stretch the font. (CSS2.1 deleted this attribute .)
Font-style Set the font style.
Font-variant Display text in small or normal font.
Font-weight Set the font width.

List attributes


Attribute Description
List-style Attribute. Set all attributes used for the list to a declaration.
List-style-image Set the image as a list item flag.
List-style-position Set the position of the list item flag in the list.
List-style-type Set the type of the list item flag.
Marker-offset

Table attributes

Attribute Description
Border-collapse Set whether to merge the table border into a single border.
Border-spacing Sets the distance between the borders of the cells to be separated.
Caption-side Set the table title position.
Empty-cells Set whether to display empty cells in the table.
Table-layout Sets algorithms for display units, rows, and columns.

Border attributes

Attribute Description
Border This attribute is short for setting attributes for Four Edges in a declaration.
Border-style It is used to set the style of all borders of an element, or to set the border style for each edge separately.
Border-width Short attribute, used to set the width of all borders of an element, or separately set the width of each border.
Border-color This attribute is short for setting the color of the visible part of all borders of an element or the color of the four sides.
Border-bottom Short attribute, used to set all attributes of the bottom border to a declaration.
Border-bottom-color Set the color of the Bottom Border of the element.
Border-bottom-style Set the style of the Bottom Border of the element.
Border-bottom-width Set the width of the Bottom Border of the element.
Border-left This attribute is short for setting all the attributes of the left border to a declaration.
Border-left-color Set the color of the Left Border of the element.
Border-left-style Set the style of the Left Border of the element.
Border-left-width Set the width of the Left Border of the element.
Border-right This attribute is short for setting all the attributes of the right border to a declaration.
Border-right-color Set the color of the right border of the element.
Border-right-style Set the style of the right border of the element.
Border-right-width Set the width of the right border of the element.
Border-top This attribute is short for setting all the attributes of the upper border to a declaration.
Border-top-color Set the color of the upper border of the element.
Border-top-style Set the style of the upper border of the element.
Border-top-width Set the width of the upper border of the element.

Locate attributes

Attribute Description
Position Place elements in a static, relative, absolute, or fixed position.
Top Defines the offset between the upper and outer margin boundary of a positioning element and the upper boundary of the contained block.
Right Defines the offset between the right margin boundary of the positioning element and the right boundary of the contained block.
Bottom Defines the offset between the bottom margin boundary of the positioning element and the bottom boundary of the contained block.
Left Defines the offset between the left margin boundary of the positioning element and the left boundary of the contained block.
Overflow Set the event that occurs when the content of an element overflows its region.
Clip Set the element shape. The element is cut into this shape and displayed.
Vertical-align Sets the vertical alignment of elements.
Z-index Set the stacking sequence of elements.


Attribute Description
Background This attribute is short for setting the background attribute in a declaration.
Background-attachment Whether the background image is fixed or scrolled with the rest of the page.
Background-color Set the background color of the element.
Background-image Set the image as the background.
Background-position Set the start position of the background image.
Background-repeat Set whether or not the background image is repeated.

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.