Use background color and spacing to quickly create a fine edge table

Source: Internet
Author: User
Tags dreamweaver

Insert a table in. If the "Border (Border)" is set to 1, the Border line is thick during preview. For web page makers who are not familiar with the HTML language, how can they quickly create a table with small borders? Next, I would like to introduce you to a small trick-to use background color and spacing to create a fine edge table.

Take the following table as an example:

Step 1 insert a table with four rows and three columns in the design View of Dreamweaver.

Step 2 set the attributes of this table in the "properties" panel as follows: the margin (CellPad) is set as needed (for example, 10), the margin (CellSpace) is 1, and the Border (Border) it is 0, and the background Color (Bg Color) is red.

Step 3 select all cells in the table and set the attributes of all cells in the "properties" panel as follows: the background color (Bg) is a color other than white or red.

Finally, save the webpage and press F12 to preview it. How is a red line table with four rows and three columns displayed in front of you?

In addition, if we want to use tables for layout and positioning as usual, we can use nested tables as long as the external box line is displayed as a thin line but the internal cell separation line is not displayed. The following describes how to use a red line as an example:

Step 1 insert a table with one row and one column in the design View of Dreamweaver.

Step 2 on the "properties" panel, set the properties of this table as follows: "Margin" (for example, 5): "spacing" is 1: "border" is 0: the "background color" is red.

Step 3 select the only cell in the table and set the "background color" of the cell in the "properties" panel to a color other than white or red.

Step 4 move the cursor to the table in the row 1 column and insert a nested table with several rows and columns as needed. The "border" of the nested table must be set to 0, "margin" and "spacing" can be set as needed or not. Other attributes are not set.

In this way, we can insert text, images, and other webpage elements into different cells of the nested table.

Are you a little tempted? Try it now!

<

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.