CSS classification attributes

Source: Internet
Author: User

Display
Syntax: display: <value>
 
Allowed value: block | inline | list-item | none
 
Initial value: block
 
Applicable to: all objects
 
Backward Compatible: no
 
The display attribute allows one of the four values to define an element:
Block (there will be line breaks before and after the element)
Inline (there will be no line breaks before and after the element)
List-item (same as block, but added the directory item mark)
None (not displayed)
Each element is typically displayed by the browser based on the HTML specification recommendations to give a default display value.
The display attribute may not be safe because it uses an inappropriate format to display elements. If the value is none, the display of the specified element and its child element is disabled!
Blank
Syntax: white-space: <value>
 
Allowed value: normal | pre | nowrap
 
Initial value: normal
 
Applicable to: block-level elements
 
Backward compatibility: Yes
 
The blank attribute determines how to process spaces in the element. The value of this attribute is one of the following three:
Normal (fold multiple spaces into one)
Pre (do not fold spaces)
Nowrap (line breaks are not allowed unless a <BR> flag is encountered)
Directory style type
Syntax: list-style-type: <value>
 
Allowed value: disc | circle | square | decimal | lower-roman | upper-roman | lower-alpha | upper-alpha | none
 
Initial value: disc
 
Applicable to: directory item elements with display values
 
Backward compatibility: Yes
 
The directory style item attribute specifies the type of the directory item tag. It is used when the directory style image value is none or when the image loading option is disabled.
For example:
LI. square {list-style-type: square}
UL. plain {list-style-type: none}
OL {list-style-type: upper-alpha}/* a B C D E etc .*/
OL {list-style-type: decimal}/* 1 2 3 4 5 etc .*/
OL {list-style-type: lower-roman}/* I ii iii iv v etc .*/
Directory style image
Syntax: list-style-image: <value>
 
Allowed value: <url> | none
 
Initial value: none

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.