Dreamweaver tutorial: CSS Make a thin box table

Source: Internet
Author: User
Tags border color continue dreamweaver

Thin-line Box table is our web page production often need to use one of the results, the production of thin-line box form a lot of code compatibility of the highest or cell background filling method, but the general writing generated more garbage code, today we convert the idea of using CSS to achieve this effect. The whole process is done completely under the Dreamweaver visual interface, without the need for everyone to write any code manually, very simple.

Create a new CSS style

To run Dreamweaver, click the menu "window" → "CSS style" to invoke the CSS panel. Click the "New CSS Rule" button in the panel, as shown in Figure 1.

Figure 1

Go to the New CSS Rule dialog box and set the selector type to: Advanced; Type the name of the selector:. BK (the name is arbitrarily determined by everyone, but the style will be called repeatedly, not to be mistaken); the definition is set to only this document, and click OK to complete it, as shown in Figure 2.

Figure 2

The following formally entered the "CSS Rule Definition" dialog box, click to select the category "Background", set "background color" as required, this example value is "#000000", that is, black (using the color selector provided by the software, the specific color code does not require manual input). This is also the table border color that we finally see, click OK to complete the setting, as shown in Figure 3.

Figure 3

Now that the CSS named ". BK" is set up, we'll add a sub selector for it. Continue clicking the "New CSS Rule" button in the CSS panel, the basic settings are shown in Figure 2, but the selector name is defined as ". BK TD" (which means that this is a child style attached to. BK). Still enter the CSS Rule Definition dialog box, continue to set the background color, this example is "#FFFFFF", that is, white, click the "OK" button to complete.

Now you can see two new CSS styles in the CSS panel, so you can call them any time, as shown in Figure 4.

Figure 4

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.