I tried using this code but it takes the css away.
<br />
{if $pagename eq 'published' || $pagename eq 'upcoming'}
<div id="categories-bg">
<ul>
{******Get the parent category******}
{assign var=requested_cat value=$request_category}
{* if story page - set the story's category to this *}
{if $pagename eq 'story'}
{assign var=requested_cat value='sub'}
{/if}
{assign var=mainCatStr value=''}
{assign var=parentCat value=-1}
{section name=thecat loop=$cat_array}
{if $cat_array[thecat].safename eq $requested_cat}
{if $cat_array[thecat].parent neq 0}
{assign var=parentCat value=$cat_array[thecat].parent}
{assign var=mainCatStr value=$cat_array[$parentCat].safename}
{else}
{assign var=parentCat value=$cat_array[thecat].auto_id}
{assign var=mainCatStr value=$cat_array[thecat].safename}
{/if}
{/if}
{/section}
{********* Displaying the Main categories *******************}
{section name=thecat loop=$cat_array}
{if $cat_array[thecat].parent eq 0}
{if $cat_array[thecat].safename eq $requested_cat || $cat_array[thecat].auto_id eq $parentCat}
<li><a href="{$URL_maincategory, $cat_array[thecat].safename}" class="current">{$cat_array[thecat].name}</a></li>
{elseif $requested_cat eq "" && $cat_array[thecat].auto_id eq 0}
<li><a href="{$URL_maincategory, $cat_array[thecat].safename}" class="current">{$cat_array[thecat].name}</a></li>
{else}
<li><a href="{$URL_maincategory, $cat_array[thecat].safename}">{$cat_array[thecat].name}</a></li>
{/if}
{/if}
{/section}
</ul>
</div><!--end of div tag "categories-bg"-->
{********* Displaying the Sub categories *******************}
{if $parentCat gt 0}
<center>
<div id="categories-layer">
<ul>
{if $requested_cat eq $mainCatStr}
<li><a style="font-size:11px;" href="{$URL_maincategory, $mainCatStr}" class='current'>{#PLIGG_Visual_RSS_All#}</a></li>
{else}
<li><a style="font-size:11px;" href="{$URL_maincategory, $mainCatStr}">{#PLIGG_Visual_RSS_All#}</a><li>
{/if}
{section name=thecat loop=$cat_array}
{if $cat_array[thecat].parent eq $parentCat}
{if $cat_array[thecat].safename eq $requested_cat}
<li style="font-size:11px;"><a href="{$cat_url}{$cat_array[thecat].safename}" class="current">{$cat_array[thecat].name}</a></li>
{else}
<li><a style="font-size:11px;" href="{$cat_url}{$cat_array[thecat].safename}">{$cat_array[thecat].name}</a></li>
{/if}
{/if}
{/section}
</ul>
</div><!--end of div tag "categories-layer"-->
{/if}
{elseif $pagename neq 'submit'}
{********* Displaying the Main categories *******************}
<div id="categories-bg">
<ul>
{section name=thecat loop=$cat_array}
{if $cat_array[thecat].parent eq 0}
<li><a href="{$URL_maincategory, $cat_array[thecat].safename}">{$cat_array[thecat].name}</a></li>
{/if}
{/section}
</ul>
</div>
</center>
{else}
{/if}
<br />




Linear Mode




