Why is a line break automatically placed between the word category: and the print of the taxonomy terms when I use
print "category:"; print $terms
in the node.tpl.php file?
I have looked at the CSS and erased the padding-left: but this hasn't solved it.
Many thanks

Comments

ytin’s picture

<?php print "category: $terms"; ?>

abdu’s picture

Add container divs as follows

<?php
print '<div clas="termslabel">category:<div>'; print $terms;
?>

Add css
. termslabel, .terms {
float :left;
}

print $terms; terms will produce a div structure with terms as class

sylvie_n’s picture

thanks guys.
But unfortunately its still appearing with the break, as follows:
category
bar, food, hospitality