Css settings-Small Margin

Source: Internet
Author: User
Css settings-Small Margin
Box-size
Allows you to define specific elements that match a region in a specific way.

Content-box (default): Apply the width and height to the content box of the element respectively. Draw the padding and border of the element beyond the width and height.
Border-box: the border box of the element is determined by the width and height set for the element.
Inherit: specifies that the value of the box-sizing attribute should be inherited from the parent element.
box-sizing:border-box;-moz-box-sizing:border-box; /* Firefox */-webkit-box-sizing:border-box; /* Safari */

-Webkit-tap-highlight-color
When a user clicks a link in iOS Safari or a JavaScript clickable element, the highlighted color is overwritten.

Color: color value (default value: inherit)
Transparent: transparent Value

-Webkit-font-smoothing
This makes the font on the page more clear and comfortable.

None: Better for low-pixel text
Subpixel-antialiased: Default Value
Antialiased

Fixed the problem of font icon aliasing.
-Webkit-font-smoothing: antialiased;
-Moz-osx-font-smoothing: grayscale;

Multi-column and multi-Column Layout
Parent element:
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;

Flex-flow: arranges row scaling items from left to right
Column scaling project arrangement from top to bottom
When a row cannot be displayed, wrap starts a new row.
Align-items: the boundary of the start position of the side axis (vertical axis) of the flex-start elastic box element is close to the start boundary of the side axis of the line.
The boundary of the start position of the side axis (vertical axis) of the flex-end elastic box element is close to the end boundary of the side axis of the line.
The center elastic box element is placed in the center of the side axis (vertical axis) of the row. (If the size of the row is smaller than the size of the element in the elastic box, the same length will overflow to the two directions ).
Baseline if the row axis and side axis of an Elastic box element are the same, the value is equivalent to 'flex-start. In other cases, this value is used for baseline alignment.
Stretch if the value of the side axis size is 'auto', the value will make the size of the margin box of the Project as close as possible to the size of the row, but it will also comply with the 'min/max-width/height' attribute restrictions.
Justify-content: flex-start (default) the project is located at the beginning of the container.
The flex-end project is at the end of the container.
The center project is located in the center of the container.
The space-between project is located in a blank container between each row.
The space-around project is located in the containers with blank spaces before, between, and after each row.
Initial sets this property as its default value.
Inherit inherits this attribute from the parent element.

Child Element
Flex
Specifies the length of a project relative to other flexible projects of the same container.
Syntax
Flex: flex-grow flex-shrink flex-basis | auto | initial | inherit;
Flex: flex-grow a number that specifies the amount that a project will expand to other flexible projects.
Flex-shrink: specifies the number of projects that will be scaled down for other flexible projects.
The length of the flex-basis project. Valid value: "auto", "inherit", or a number followed by "%", "px", "em", or any other length unit.
Auto is the same as 1 auto.
None is the same as 0 auto.
Initial sets this property to its default value, that is, 0 1 auto.
Inherit inherits this attribute from the parent Element
-Webkit-flex: 1;
-Moz-flex: 1;
Flex: 1;

Text-transform
Controls the case sensitivity of text.
None is the default value. Defines standard text with lower-case letters and upper-case letters.
Each word in capitalize text starts with an uppercase letter.
Uppercase only has uppercase letters.
Lowercase defines no upper-case letters and only lower-case letters.
Inherit specifies that the value of the text-transform attribute should be inherited from the parent element.

White-space
Attribute setting: how to process the blank space in the element.
Normal default. The blank space is ignored by the browser.
Pre blank is retained by the browser. The behavior is similar
Label.
The nowrap text will not wrap, and the text will continue on the same line
Label.
Pre-wrap retains the blank character sequence, but line breaks are normally carried out.
Pre-line merges the blank character sequence, but retains the line break.
Inherit specifies that the value of the white-space attribute should be inherited from the parent element.

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.