• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Stop wasting time looking for files and revisions. Connect your Gmail, DriveDropbox, and Slack accounts and in less than 2 minutes, Dokkio will automatically organize all your file attachments. Learn more and claim your free account.

View
 

tag: td

Page history last edited by Kernigh 13 years, 8 months ago

Back to HTML Tag List

 

Each single cell of a table uses a <td> tag. You can use CSS to style the content inside the table cells as well as to set the padding or background color. To override, PBwiki's defaults, you need to use a #displaycontent table td selector:

 

td {background-color: yellow; } /* bad */

#displaycontent td { background-color: yellow; } /* bad */

#displaycontent table td { background-color: yellow; } /* good */

 

Otherwise, CSS will consider PBwiki's #displaycontent table td selector to be more specific than yours, and it will cascade to override your customisations.

 

The good line above sets the background color of table cells to yellow, overriding PBwiki's defaults?

 

 

This table has
all yellow cells.

 

See also table and tr.

Comments (0)

You don't have permission to comment on this page.