Category Layout

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-11-2008, 12:38 PM
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 796
I am trying to change the way the categories are currently laid out.

I have taken them from the sidebar and placed in my main content div.

Currently they display one under each other, I am trying to get them to display in multiple columns. Example:

Category 1 Category 2 Category 3
Category 4 Category 5 Category 6
Category 7 Category 8 Category 9

Anyone have any idea how to do this.

I have tried using this in my CSS:

Code:
#category {

	width: 457px;

	height: 347px;

	background: url(templates/yget/images/cat_bkgd.gif) no-repeat top left;

	float: left;

	padding: 10px 15px 15px 15px;

}

#category_list {
	margin: 0px 0px 0px 0px;
	padding: 0px 0px 0px 0px;
        display:block;
        list-style-type: none;
	font-size: 110%;
        width:10em;
	}
#category_list li {
	line-height: 1.4em;
	margin: 0px 0px 0px 0px;
        list-style-type: none;
        display:block;
        width:10em;
	padding: 0px 0px 0px 0px;
	}
#category_list li a{
	color: #3399cc;
        display:block;
        text-decoration: none
        width:10em;
	}
#category_list li a:hover{
        text-decoration: underline;
        display:block;
        width:10em;
	}
but isn't accomplishing it for me.

Here is my categories.tpl:

Code:
<div id="category">
<div id="category_list">
<div class="wlmsg2">
<h3>
<span class="bborange">Cate</span><span class="bbdrkblue">gories</span>

</h3>
</div>
	
				<ul>
		<li>
			{section name=thecat loop=$cat_array start=1}
				{if $lastspacer eq ""}
					{assign var=lastspacer value=$cat_array[thecat].spacercount}
				{/if}

				{if $cat_array[thecat].spacercount lt $lastspacer}{$cat_array[thecat].spacerdiff|repeat_count:'</li></ul>'}{/if}
				{if $cat_array[thecat].spacercount gt $lastspacer}<ul style="padding-left:12px"><li>{/if}

				
		
				{if $pagename eq "published"}
					<a href="{$URL_maincategory, $cat_array[thecat].safename}">{$cat_array[thecat].name}</a>{if $cat_array[thecat].parent neq 0} ({$cat_array[thecat].catcount}) {/if}
				{else}
					<a href="{$URL_queuedcategory, $cat_array[thecat].safename}">{$cat_array[thecat].name}</a>{if $cat_array[thecat].parent neq 0} ({$cat_array[thecat].catcount}) {/if}
				{/if}
	
				{assign var=lastspacer value=$cat_array[thecat].spacercount}
			{/section}
		</li><br />
	</ul>
</div>
</div>
any input welcome.

Geoserv
Reply With Quote
  #2 (permalink)  
Old 02-11-2008, 10:08 PM
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 796
I made some progress using display:inline

Still not displaying in columns but its better.

Geoserv.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Control of meta description - categories Divisive Cotton Questions and Comments 65 11-06-2009 07:10 PM
pligg 9.8.2 Categories 100% Bug! bbrian017 Questions and Comments 13 12-19-2008 05:10 PM
Pligg Categories Yankidank Wiki Articles 1 12-17-2008 10:10 AM
How to show category keywords as text on the site? gnalkit Questions and Comments 4 11-26-2008 05:17 AM
[SOLVED] Sidebar Category Layout in 9.8 YGet mrtbc Questions and Comments 11 12-20-2007 02:58 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development