Use CSS to change table border style

Source: Internet
Author: User
Tags copy
CSS with CSS to change the table border style, a very practical way.

Production method:
Copy the following code into <body>~</body>, which is Hide Bottom Border
<table border= "1" cellpadding= "0" cellspacing= "0" style= "border-collapse:collapse; border-bottom-width:0 "bordercolor=" #111111 "width=" >
&LT;TR align= "center" >
&LT;TD style= "Border-bottom-style:none; Border-bottom-width:medium "height=" > Hidden bottom </td>
</tr>
</table>

Copy the following code into <body>~</body>, which is Hide Top Border
<table border= "1" cellpadding= "0" cellspacing= "0" style= "border-collapse:collapse; border-top-width:0 "bordercolor=" #111111 "width=" >
&LT;TR align= "center" >
&LT;TD height= "style=" border-top-style:none; Border-top-width:medium "> Hide top Border </td>
</tr>
</table>

Copy the following code into <body>~</body>, which is Hide left Border
<table border= "1" cellpadding= "0" cellspacing= "0" style= "border-collapse:collapse; border-left-width:0 "bordercolor=" #111111 "width=" >
&LT;TR align= "center" >
&LT;TD style= "Border-left-style:none; Border-left-width:medium "height=" > Hide left Border
</td>
</tr>
</table>

Copy the following code into <body>~</body>, which is Hide Right border
<table border= "1" cellpadding= "0" cellspacing= "0" style= "border-collapse:collapse; border-right-width:0 "bordercolor=" #111111 "width=" >
&LT;TR align= "center" >
&LT;TD style= "Border-right-style:none; Border-right-width:medium "height=" > Hide right Border
</td>
</tr>
</table>

So you can complete this example, you can try it yourself! What do not understand the place can ask me!

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.