Use CSS to style table borders

Source: Internet
Author: User
In the previous web development section, I introduced a lot of methods to process HTML tables. Although the method of using tables to deploy web pages is no longer fashionable, however, you can still use tables to display table column data.
There are many ways to display and style a table. In this article, I will introduce how to use CSS to style a table border.
Link
The CSS2 table model is based on the HTML 4.01 table model. The table contains an optional anchor tag, a cell, and a data row. The Table model contains the following elements: table, anchor, data row, data row group, data column, data column group, and cell. This article will focus on the border handling methods of each element in the table.
Border
You can apply different borders to tables and cells based on your needs. You can define the border of the entire table or separate cells. CSS border attributes can specify the border size, color, and type. The following code defines a black solid border with a width of 5 pixels:
TABLE
Related Article

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.