this is the code that will give you root categories in a horizontal line
Code:
<table cellpadding="5" cellspacing="0"><tr>
{section name=cat_num loop=$categories}
<td>
<font class=CategoriesList>
{$categories[cat_num].category_name}</font>
</td>
{/section}
</tr>
</table>