How table thin borders are implemented

Source: Internet
Author: User
Tags border color

Mode 1


Set the border of the border=0,cellspacing=1, set the background color of the table to the desired border color, and then set all the TD background color is white, so the thin border is revealed.


Mode 2


Set border=0 , then via CSS, add 1px border-top,border-left to table, then set all TD Border-right,border-bottom, This will also achieve the desired effect.


Mode 3


Set the table's CSS to {border-collapse:collapse;border:none;}, then set the TD css to {border:solid #000 1px;}


Of these, Border-collapse has two properties, separate and collapse


1, separate is the default property, the table border default has a gap of 1px

2, collapse, is to remove the gap of the table border, so that the table TD border assignment will not produce a double wireframe



Reference: Table thin border http://www.studyofnet.com/news/857.html

How table thin borders are implemented

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.