CSS Basics (backgrounds, text, lists, tables, outlines)

Source: Internet
Author: User

CSS Background Properties
Properties Description
Background Shorthand property, which is the setting of the Background property in a declaration.
Background-attachment Whether the background image is fixed or scrolls along with the rest of the page.
Background-color Sets the background color of the element.
Background-image Set the image to the background.
Background-position Sets the starting position of the background image.
Background-repeat Sets whether and how the background image repeats.
CSS Text Properties
Properties Description
Color Set Text color
Direction Sets the text orientation.
Line-height Sets the row height.
Letter-spacing Sets the character spacing.
Text-align Aligns the text in the element.
Text-decoration Add adornments to text.
Text-indent Indents the first line of text in an element.
Text-shadow Sets the text shadow. CSS2 contains this property, but CSS2.1 does not preserve it.
Text-transform Controls the letters in the element.
Unicode-bidi Sets the text orientation.
White-space Sets how whitespace is handled in the element.
Word-spacing Sets the word spacing.
CSS Font Properties
Properties Description
Font Shorthand property. The function is to set all the font-oriented properties in a single declaration.
Font-family Sets the font family.
Font-size Sets the size of the font.
Font-size-adjust Intelligently scales the replacement font when the preferred font is not available. (CSS2.1 has deleted this property.) )
Font-stretch Horizontally stretches the font. (CSS2.1 has deleted this property.) )
Font-style Sets the font style.
Font-variant Displays text in a small uppercase font or in a normal font.
Font-weight Sets the weight of the font.
CSS Listing Properties (list)
Properties Description
List-style Shorthand property. Used to set all properties used for the list in a declaration.
List-style-image Sets the image as a list item flag.
List-style-position Sets the position of the list item label in the list.
List-style-type Sets the type of the list item flag.
Marker-offset
CSS Table Properties

CSS Table properties allow you to set the layout of the table. (Note that this section is not about how to use tables to build layouts, but about how the tables themselves are laid out in CSS.) )

Properties Description
Border-collapse Sets whether to merge the table borders into a single border.
Border-spacing Sets the distance separating the border of the cell. (for "separated borders" models only)
Caption-side Sets the position of the table caption.
Empty-cells Sets whether to display empty cells in the table. (for "separated borders" models only)
Table-layout Sets the algorithm for displaying cells, rows, and columns.

CSS Border Properties

A contour (outline) is a line that is drawn around an element, at the periphery of the edge of the bounding rectangle, that acts as an element of prominence.

The CSS outline property specifies the style, color, and width of the element outline.

The number in the CSS column indicates which CSS version defines the property.

Properties Description CSS
Outline Set all the profile properties in a declaration. 2
Outline-color Sets the color of the outline. 2
Outline-style Sets the style of the outline. 2
Outline-width Sets the width of the outline. 2

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.