Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Greetings,
I'm setting up a blog view and displaying taxonomy tags at the bottom. Currently they are displaying in a column, but I would prefer to display them inline. What is the best way to do this?
Thanks.
Comment | File | Size | Author |
---|---|---|---|
#5 | 1213162-5.jpg | 14.06 KB | stBorchert |
Comments
Comment #1
stBorchertYou'll have to apply some CSS on the list and the list items that builds the markup for the terms.
See http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css or a more in-depth article.
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedI've been struggling with this one for a while.
From inspecting the tags I keep getting to this part of the css in sites/default/files/color/busy-xxxx/style.css
[code]
div.node .field-name-taxonomy-tags {
/*display:block;*/
display: inline-block;
}
div.node .field-name-taxonomy-tags .field-label {
/* float: left;*/
margin-right: 0.5em;
display:inline-block;
}
div.node .field-name-taxonomy-tags .field-item {
/* float: left;*/
margin: 0 .2em;
display:inline-block;
}
[/code]
But it has no effect on the layout. Does anyone have anywhere else to look for the css that styles these tags?
Thanks,
jim
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #5
stBorchertTried with the following code and it worked:
Result: