How to set the color of css table box

WBOY
Release: 2021-11-26 17:23:23
Original
7195 people have browsed it

In CSS, you can use the "border-color" attribute to set the color of the table box. This attribute is mainly used to set the border color for elements. You only need to add "border-color: color value; "Style is enough.

How to set the color of css table box

The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.

How to set the color of the table box in css

In css, you can use the border-color attribute to set the border color of the table table.

border-color property sets the color of the four borders. This property can set from 1 to 4 colors.

The border-color property is a shorthand property that can set the color of the visible parts of all borders of an element, or set different colors for each of the 4 sides.

The following example explains how to set the border color of table with css. The example is as follows:

      Document  
111 222
333 444
555 666
777 888
Copy after login

Output result:

How to set the color of css table box

(Learn Video sharing:css video tutorial)

The above is the detailed content of How to set the color of css table box. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
css
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!