CSS syntax for table borders

CSS syntax for table borders
<br /> CSS syntax for table borders
The specific contents include: top border width, right border width, bottom border width, left border width, border width, border color, border style, top border, bottom 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
Applies to: All objects Backwards compatible: No The border-top-width property is used to specify the width of an element's top border. The value can be one of three keywords, none of which is affected by the font size or length, and can be used to achieve proportional widths. Negative values ​​are not allowed. Can also be used for top border, border width, or border attribute abbreviation.
2. Right border width
Syntax: border-right-width: <value>
Allowed values: thin | medium | thick | <length>
Initial value: medium
Applies to: All objects Backwards compatible: No The right border-width property is used to specify the width of an element's right border. The value can be one of three keywords, none of which is affected by the font size or length, and can be used to achieve proportional widths. Negative values ​​are not allowed. Can also be used for the right border, border width, or border property abbreviation.
3. Bottom border width
Syntax: border-bottom-width: <value>
Allowed values: thin | medium | thick | <length>
Initial value: medium
Applies to: All objects Backwards compatible: No The border-bottom-width property is used to specify the width of an element's bottom border. The value can be one of three keywords, none of which is affected by the font size or length, and can be used to achieve proportional widths. Negative values ​​are not allowed. Can also be used for the bottom border, border width, or border property abbreviation.
4. Left border width
Syntax: border-left-width: <value>
Allowed values: thin | medium | thick | <length>
Initial value: medium
Applies to: All objects Backwards compatible: No The left border-width property is used to specify the width of an element's left border. The value can be one of three keywords, none of which is affected by the font size or length, and can be used to achieve proportional widths. Negative values ​​are not allowed. Can also be used for left border, border width, or border property abbreviation.
5. Border width

Syntax: border-width: <value>
Allowed values: [ thin | medium | thick | <length> ]{1,4}
Initial Value: Undefined Applies to: All objects Backward Compatibility: No The border-width property sets the border of an element using one to four values, where the value is a keyword or a length. Negative lengths are not allowed. If four values ​​are given, they apply to the styles of the top, right, bottom, and left borders respectively. If a value is given, it will be applied to all edges. If two or three values ​​are given, the omitted values ​​are equal to the opposite sides. This property is a shorthand for the border-top-width, border-right-width, border-bottom-width, and border-left-width properties. A shorthand border property may also be used.
Previous Page 1 2 3 Next Page Read More

<<:  Detailed tutorial for installing MySQL 8.0.22 on Redhat 7.3 (binary installation)

>>:  Modify the maximum number of mysql connections and configuration files in docker

Recommend

A complete list of commonly used Linux commands (recommended collection)

Table of contents 1. System Information 2. Shutdo...

A brief discussion of several browser compatibility issues encountered

background Solving browser compatibility issues i...

Summary of the top ten problems of MySQL index failure

Table of contents background 1. The query conditi...

win2008 server security settings deployment document (recommended)

I had been working on the project before the New ...

CentOS 8 installation diagram (super detailed tutorial)

CentOS 8 is officially released! CentOS fully com...

Example explanation of alarm function in Linux

Introduction to Linux alarm function Above code: ...

Introduction to the use of several special attribute tags in HTML

The following attributes are not very compatible w...

JavaScript article will show you how to play with web forms

1. Introduction Earlier we introduced the rapid d...

Example of using js to natively implement year carousel selection effect

Preface Use js to achieve a year rotation selecti...

How to export CSV file with header in mysql

Refer to the official document http://dev.mysql.c...

A guide to writing flexible, stable, high-quality HTML and CSS code standards

The Golden Rule Always follow the same set of cod...