Styling Taxonomy Terms
By default, Drupal outputs taxonomy terms as an unordered list in the div.meta section of nodes. Here is a simple CSS pattern to format taxonomy terms with either the pipe character (" | ") or as a comma-delimited list (in the example, change " | " to ", " to make a comma-delimited list).
/* NRD: Display taxonomy and submitted terms inline. */
.node .terms, /* Node terms (taxonomy) */
.node .submitted /* The "posted by" information */
{
color: #666;
font-size: 0.8em;
display: inline;
}
/* NRD: Style taxonomy list like a list. */
.node .terms ul.links.inline li
{
padding: 0;
}
.node .terms ul.links.inline li:after
{
content: " | ";
}
.node .terms ul.links.inline li.last:after
{
content: "";
}
Comments
Post new comment