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

Source: Internet
Author: User

With the application of CSS Web page layout to build Web pages, as well as the wide spread and development of web standards, the table is gradually forgotten, but the table still has its outstanding 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,td,th{
  
  border:1px #000 solid;
  
  border-collapse:collapse;
  
}

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

Tested and passed the standard strict!

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.