Explain how you can style table borders.

What will be an ideal response?


By default, tables are displayed in the browser with borders turned off. You can add borders to tables using CSS style rules. Borders can be applied to the whole table, to individual rows, and to individual cells. Using the table element as a selectorapplies the border only to the outside of the table.?Borders do not inherit styles, so you can add borders for each cell by specifying them in a separate style rule. ?You can also style individual row and cell borders using classes or ids to make specific selections in the table. For example, a row selector could look like the following:?tr.header {background-color: #ccddee;}
You would apply this rule using the class attribute in the specific row you want to have the
background color:

Computer Science & Information Technology

You might also like to view...

What is the value of x after the following code segment?

int x = 5, y = 3; do { x = x * 2; y = y + 2; } while (y < 7);

Computer Science & Information Technology

In PowerPoint, when you crop a picture, the cropped portion does not display on the slide, but it is not removed from the presentation file

Indicate whether the statement is true or false

Computer Science & Information Technology

The ____ of a computer network is the way the individual computers or devices are connected.

A. technology B. topology C. medium D. mode

Computer Science & Information Technology

Photoshop features an extensive ____________________ system that you can use to access definitions, explanations, and useful tips.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology