Display priority of border-collapse borders

Source: Internet
Author: User
The border-collapse attribute sets whether the border of the adjacent TD in the table is merged into a single border or displayed separately as in standard HTML.

Default Value:

Separate

Inheritance:

Yes

Version:

Css2

JavascriptSyntax:

Object. Style. bordercollapse = "collapse"

 

Value

Description

Separate

Default value. Borders are separated. The border-spacing and empty-cells attributes are not ignored.

Collapse

If possible, the border is merged into a single border. The border-spacing and empty-cells attributes are ignored.

Inherit

Specify that the value of the border-collapse attribute should be inherited from the parent element.


  • Which of the following is displayed when the two borders are inconsistent when the border is merged?
(1) first, check the border-width attribute, which has a higher priority than the wide side.


(2) If border-width is the same, check the border-style attribute again. The priority ranges from high to low:
Double, solid, dashed, dotted, ridge, outset, groove, inset
Note: When border-style is double, border-width must be greater than or equal to 3px to see the effect.


(3) If border-width and border-style are the same, the priority ranges from high to low Based on the element type of the edge:
Cell, row, row group, column, column group, table


(4) Border-width, border-style, and element types. If the three elements are the same, the position of the side is displayed first.

Display priority of border-collapse borders

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.