How can I display tags below an article inline? I have tried using firebug to no avail. I am using Drupal 7 and the zen sub theme.

  • put a link to ur site here for us to have a look at it
    – vishal
    Dec 5 '11 at 18:52
  • my website is not yet live as i am still developing it. however, when i added tags on a test article, they aligned vertically. i want them to align horizontally similar to how they appear on this site. Dec 5 '11 at 19:07

You can use CSS to style the tags.

If your html output is this:

<ul class="tags">
    <li>Tag 1</l1>
    <li>Tag 2</l1>
    <li>Tag 3</l1>
    <li>Tag 4</l1>

Then use the following CSS to align tags horizontally.

.tags li { display:block; float:left; }
  • 1
    or you can use .tags li { display:inline-block; } Dec 6 '11 at 12:09
  • I agree, that would work too.
    – madhattertech
    Dec 6 '11 at 13:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.