Some of the required attributes of CSS collation

Source: Internet
Author: User
Tags relative set background

Text

Color sets the colour of text

Text-align sets the alignment of text

Text-decoration sets the underline for text

Text-transformation sets the capitalization of letters and the first letter of a word

Line-height Set Row height

Letter-spacing sets the distance between characters

Font

Font-family Set Font

Font-size Set the font size

Font-style set font to italic or normal

Font-weight Bold Font

Background

Background-color set the color of the background

Background-image Set Background picture

Background-repeat set the background picture to repeat the way

Background-position set the position of the background picture defaults to top left

Lists

List-style-type set the type of list, with circle equivalent

Box-model

Margin setting the outer margin of the box is transparent.

Padding set the inner margin of the box is also transparent.

Border sets the border of the box, and the border is opaque. Note: The border must be set to a type, otherwise it will not work.

Float set box floating, floating is an absolute positioning of the one, the space will disappear.

Clear clears the float of the box and clears the container from the package.

Position And:after/: Before

: After and: Before are usually used in conjunction with position. Position is divided into absolute positioning and relative positioning, relative positioning of the space is still, the absolute location of the space is not. The two pseudo class + position absolute position, by very powerful power, many places can use. such as micro-letter red DOT message notification.

CSS3

Border-radius CSS3 supports setting rounded corners

-webkit-border-radius Support for WebKit browsers

-moz-border-radius: Browsers that support Moz

Syntax: Provides a radius.

Box-shadow CSS3 supports setting shadows

-webkit-box-shadow

-moz-box-shadow

Syntax-shadow:none|h-shadow v-shadow blur spread color |inset|initial|inherit;

Text-shadow CSS3 Support Setting Text shadow

Syntax-shadow:h-shadow V-shadow Blur-radius Color|none|initial|inherit;

Multiple backgrounds CSS3 background image supports multiple background images

* * background-size** CSS3 Support background dimensions

Text-overflow CSS3 supports the processing of text beyond boundaries

Syntax:

Text-overflow:clip|ellipsis|string|initial|inherit;

Flexible Box Model

The transform is divided into 2d and 3d mainly including scaling, panning and rotation.

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.