CSS syntax about table borders
The specific content includes: upper border width, right border width, lower border width, left border width, border width, border color, border style, upper border, lower border, left border, right border, border, width, height, related labels, etc.
1. Top border width
Syntax: border-top-width: <value>
Allowed values: thin | medium | thick | <Length>
Initial value: medium
Applicable to: All objects
Backward compatibility: No
The upper border width attribute specifies the width of the border on an element. The value can be one of three keywords, and is not affected by the font size or length, and can be used to achieve proportional widths. Negative values are not allowed. It can also be written in the upper border, the width of the border or the properties of the border.
2. Right border width
Syntax: border-right-width: <value>
Allowed values: thin | medium | thick | <Length>
Initial value: medium
Applicable to: All objects
Backward compatibility: No
The Right Border Width property specifies the width of the right border of the element. The value can be one of three keywords, and is not affected by the font size or length, and can be used to achieve proportional widths. Negative values are not allowed. It can also be written in the right border, the width of the border, or the properties of the border.
3. Lower border width
Syntax: border-bottom-width: <value>
Allowed values: thin | medium | thick | <Length>
Initial value: medium
Applicable to: All objects
Backward compatibility: No
The lower border width attribute specifies the width of the lower border of the element. The value can be one of three keywords, and is not affected by the font size or length, and can be used to achieve proportional widths. Negative values are not allowed. It can also be written in the lower border, the width of the border or the properties of the border.
4. Left border width
Syntax: border-left-width: <value>
Allowed values: thin | medium | thick | <Length>
Initial value: medium
Applicable to: All objects
Backward compatibility: No
The left border width attribute specifies the width of the left border of the element. The value can be one of three keywords, and is not affected by the font size or length, and can be used to achieve proportional widths. Negative values are not allowed. It can also be written in the left border, the width of the border, or the properties of the border.
5. Border width
Syntax: border-width: <value>
Allowed values: [ thin | medium | thick | <length> ]{1,4}
Initial value: Undefined
Applicable to: All objects
Backward compatibility: No
The border width attribute uses one to four values to set the boundary of an element, which is a keyword or length. Negative lengths are not allowed. If all four values are given, they are applied to the styles of the upper, right, bottom and left borders, respectively. If a value is given, it will be applied to each side. If two or three values are given, the omitted value is equal to the opposite edge. This property is a brief description of the upper border width, right border width, lower border width and left border width properties. You can also use the border properties written out.
Previous page 1 2 3 Next page Read the full text