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.