How to add a thin border to a table without CSS styles in the DW

Source: Internet
Author: User
This article mainly describes the DW in the use of CSS style for the table to add a thin border of the method, has a certain reference value, now share to everyone, the need for friends can refer to

Add a thin line with CSS. No, you can. This article is about how to add a thin line to a table without CSS

Recently in the study of Dreamweaver to do the site, is learning form this chapter, the results found that the table border settings is very bad, is set to the border 1 is also particularly thick, I want to use CSS style for the table to add a thin border , really ugly,

Set up:

Effect:

There is no good way to look for a long time on the internet, mostly speaking style, I have not learned it, I also know that the style is certainly a lot of good, can be set into a rich form, dashed ah, double line ah what, but must have to the style very understanding, and then through my practice, I found a way, hehe, I'm just talking about one of the simplest ways to do this without having to use CSS styles, and note that I'm just saying that it's a personal little way, not a skill.
I found that just set the border to 0, the spacing is set to 1, the fill is set to 0, you can, and then you want to set the border to the color of the background of the table why the color, the color is set to the page background of the same color can be.

Set up:


Effect:

Here I set the background of the table to Blue (#0000FF), the table is white, the code is as follows:

<table  bgcolor= "#0000FF" width= "border=" 0 "cellpadding=" 0 "cellspacing=" 1 "><tr><td bgcolor= "#FFFFFF" >&nbsp;</td><td bgcolor= "#FFFFFF" >&nbsp;</td><td bgcolor= "#FFFFFF" > &nbsp;</td></tr><tr> <td bgcolor= "#FFFFFF" >&nbsp;</td><td bgcolor= "# FFFFFF ">&nbsp;</td><td bgcolor=" #FFFFFF ">&nbsp;</td></tr><tr><td Bgcolor= "#FFFFFF" >&nbsp;</td><td bgcolor= "#FFFFFF" >&nbsp;</td><td bgcolor= "# FFFFFF ">&nbsp;</td></tr></table>

This way, do not use CSS style to add a thin line to the table border is OK, want what color to change to what color, do not have the style can be completed, hehe.

The above is the whole content of this article, I hope that everyone's learning has helped, more relevant content please pay attention to topic.alibabacloud.com!

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.