shawnogordo
Member
Posted 2 years ago #
Sorry for the not-so helpful thread title. Couldn't think of any better way to word this.
If you take a look at my WordPress installation, you'll see that I have two lines worth of categories (renamed on my site to "Tags") for the one post I hae entered. Is there a way that I can keep the second line of categories in line wirh the first? You'll notice that the second line starts a bit left of the first. I'm thinking maybe some kind of justification tag? Anyone have any ideas?
My first idea is: give us the link to the actual post you're talking about, so we won't have to search around for it (just in case you managed to post more than "one post" without as many tags).
Second idea:
For single.php and index.php:
<p class="tag-title">Tags: </p>
<?php the_category() ?>
In your style.css file:
.tag-title {
float: left;
display: inline;
margin: 0 5px 0 0;
}
ul.post-categories {
float: left;
margin: 0;
padding: 0;
}
ul.post-categories li {
display: inline;
list-style-type: none;
padding: 0;
margin: 0;
}
This should work right. Wordpress will generate the "post-categories" class for you.