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: ""; }
Hello! My name is Eric Weik. I am a computer scientist, photographer, musician, and occasional blogger. New Rivers Digital is my software consulting business. I am dedicated to using open source software and open data standards for Web development and applications integration. In particular, I am an ardent Drupal fan and specialize in Drupal module development, theming, and data architecture integration.
Reply to comment
Styling Taxonomy Terms
In: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: "";
}
Reply
About
Hello! My name is Eric Weik. I am a computer scientist, photographer, musician, and occasional blogger. New Rivers Digital is my software consulting business. I am dedicated to using open source software and open data standards for Web development and applications integration. In particular, I am an ardent Drupal fan and specialize in Drupal module development, theming, and data architecture integration.
Contact Details
Lancaster, VA 22503
Content Tags
Abstract B&W Bookmarklet Celestial Clouds CSA Date Drupal Drupal Recipes Drupal Sites Dynamic Range Estuary Government Grasses Long Exposure Macro New Rivers Digital Photoblog Photoset RGB Sketchbook Snow Storm Sumi-e Sunset Surf Theming Trigger.module Views.module Webform.module Zen Zen ThemingRecent comments
Popular content
Today's:
All time:
Activity Stream
Mon, 09/06/2010 - 21:55
Thu, 09/02/2010 - 21:05
Sat, 08/28/2010 - 23:00
Sat, 08/28/2010 - 22:58
Thu, 08/26/2010 - 08:05
Tue, 08/24/2010 - 09:18
Powered by Drupal & Genesis | Valid XHTML 1.0 Strict |
RSS Feed
© 2010 New Rivers Digital | PO Box 784 | Lancaster, Virginia 22503 | +1-804-577-8526 | Contact Form