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

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

tag: td

Page history last edited by Kernigh 17 years, 4 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.