CSS Grammar Manual (vi) Classification attributes

Source: Internet
Author: User
Tags manual
css| Syntax

1, display

function : Changes the display value of the element, you can change the element type line, block and list item to each other.
value :
None-Element not displayed
Block-blocks display, setting line breaks before and after elements
Inline-Deletes the line break before and after the element so it is merged into another element stream
List-item-Set the element as a row in the manifest
Note : Use the Display property values to generate insert captions and add a list or make the graphic appear on the line.

2, White-space

function : Controls the whitespace inside the element.
value :
Normal-does not change, retains the default value, and wraps at the length of the browser page.
Pre-requires the document display to be in the source code format.
Nowarp-does not allow the visitor to wrap the line inside the element.

3, List-style-type

function : Specify the Accent or number type used in the manifest
value :
None-no accent
Disc-disc accent (solid circle)
Circle-Circle Accent (Hollow circle)
Square-squares accent (solid)
decimal-Decimal Accent
Lower-roman-Lowercase Roman accent
Upper-roman-Capital Roman character accent
Lower-alpha-Small Letter accent
Upper-alpha-Uppercase Accent
Example :

    • Item1
    • Item2
    • Item3

4, List-style-image

function : Used to change the standard accent character in the list to the selected graphic
value :
No graphics
URL-Graphics URL address
Example :

    • Item1
    • Item2
    • Item3

5, List-style-position

features : Used to set the indentation or extension of the accent, which allows the accent to be highlighted outside the manifest or aligned with the manifest item.
value :
Inside-indent, aligning the accent with the left edge of the list item's contents
Outside-extension, accent highlighting beyond the left edge of the list item's content

6, List-style

features : Shorthand property, which puts all the manifest attributes in one statement.
value :
List-style-type
List-style-position
List-style-image
The details of these values are shown in the various attribute sections.
Example :

    • Item1
    • Item2
    • Item3






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.