CSS to produce a thin form that meets the standards of the website

Source: Internet
Author: User

CSS Tutorial: Implementing thin-line tables that conform to Web standards

As you build Web pages with CSS page layouts,
and the wide spread and development of web standards,
The table was gradually forgotten,
But the table still has its good side,
The Data processing table does save a lot of trouble!
This is a fine-grained form of code, and passed the standard validation!

table{
border:1px solid #000;
border-width:1px 0 0 1px;
margin:2px 0 2px 0;
Text-align:center;
Border-collapse:collapse;
}
td,th{
border:1px solid #000;
border-width:0 1px 1px 0;
margin:2px 0 2px 0;
Text-align:left;
}
th{
Text-align:center;
font-weight:600;
font-size:12px;
Background-color: #F4F4F4;
}


<table width= "236" >
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
table,td,th{
border:1px #000 Solid;
Border-collapse:collapse;
}

With this last piece of code, it's easy to implement

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.