All properties of CSS styles

Source: Internet
Author: User

Background

All background properties are set in a declaration.

Background-attachment

Sets 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

Sets the background image of the element.

Background-position

Sets the start position of the background image.

Background-repeat

Sets whether and how the background image is repeated.

Css

Font properties (font)

Font

Set all font properties in a declaration.

Font-family

Specifies the font family for the text.

Font-size

Specifies the font size of the text.

Font-size-adjust

Specify for elements

The aspect value.

Font-stretch

Shrinks or stretches the current font family.

Font-style

Specifies the font style for the text.

Font-variant

Specifies the font style for the text.

Font-weight

Specifies the weight of the font.

Css

Margin Property (margin)

Margin

Set all margin properties in a declaration.

Margin-bottom

Sets the bottom margin of the element.

Margin-left

Sets the left margin of the element.

Margin-right

Sets the right margin of the element.

Margin-top

Sets the top margin of the element.

Css

Padding Property (Padding)

Padding

Set all padding properties in a declaration.

Padding-bottom

Sets the bottom padding of an element.

Padding-left

Sets the left padding of the element.

Padding-right

Sets the right padding for an element.

Padding-top

Sets the top padding of an element.

Css

List properties (lists)

List-style

Set all the list properties in a declaration.

List-style-image

Sets the image as a list item marker.

List-style-position

Sets the placement position of the list item marker.

List-style-type

Sets the type of the list item marker.

Marker-offset

Content generation (Generated contents)

Content with: Before and: After

Pseudo-elements are used together to insert the generated content.

Counter-increment

Increments or decrements one or more counters.

Counter-reset

Create or reset one or more counters.

Quotes

Sets the quotation mark type for a nested reference.

Css

Dimension Properties (Dimension)

Height

Sets the height of the element.

Max-height

Sets the maximum height of the element.

Max-width

Sets the maximum width of the element.

Min-height

Sets the minimum height of the element.

Min-width

Sets the minimum width of the element.

Width

Sets the width of the element.

Css

Positioning properties (positioning)

Bottom

Sets the offset between the margin boundary under the anchor element and the lower boundary of its containing block.

Clear

Specifies which side of the element does not allow other floating elements.

Clip

Trims an absolutely positioned element.

Cursor

Specifies the type (shape) of the cursor to be displayed.

Display

Specifies the type of box that the element should generate.

Float

Specifies whether the box should float.

Left

Sets the offset between the left margin boundary of the anchor element and the left boundary of its containing block.

Overflow

Specifies what happens when the content overflows the element box.

Position

Specifies the positioning type of the element.

Right

Sets the offset between the right margin boundary of the anchor element and the right boundary of its containing block

Top

Sets the offset between the top margin boundary of the anchor element and the upper boundary of its containing block.

Vertical-align

Sets the vertical alignment of the element.

Visibility

Specifies whether the element is visible.

Z-index

Sets the stacking order of elements.

CSS Printing properties (print)

Orphans

Sets the minimum number of rows that must be retained at the bottom of the page when pagination occurs within an element.

Page-break-after

The paging behavior after the element is set.

Page-break-before

The paging behavior before the element is set.

Page-break-inside

Sets the paging behavior inside an element.

Widows

Sets the minimum number of rows that must be retained at the top of the page when pagination occurs within an element.

All properties of CSS styles

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.