Ready to get started?Download WordPress


[resolved] Stumped on Category List Display (3 posts)

  1. bradstinyworld
    Posted 6 years ago #

    Here is my problem now that I have added count, feed and told my catecories to display them they look like this on the page

    Celebrity Rumors
    ) (10)
    Celebruty Fashion
    ) (5)

    so on and etc

    what I want is "Celebruty Fashion (RSS) (10)" all on a single line. I am not seeing what the problem is in the code. I am sure it is something simple, but my eyes aren't seeing it unfortunately here is my code,
    hard code in the sidebaar:

    			<?php wp_list_cats('show_count=1&feed=RSS&depth=1'); ?>

    This is the code from my style sheet for that column:

    #l_sidebar {
    	float: left;
    	width: 225px;
    	margin: 25px 0px 0px 20px;
    	padding: 0px 0px 20px 0px;
    	border-top: 2px solid #FFFFFF;
    #l_sidebar ul {
    	list-style: none;
    	margin: 0px;
    	padding: 0px;
    #l_sidebar ul li {
    	display: inline;
    	padding: 0px;
    	margin: 0px;
    #l_sidebar ul li a {
    	display: block;
    	color: #FF6BA6;
    	text-decoration: none;
    	margin: 0px;
    	padding: 5px 0px 5px 0px;
    #l_sidebar ul li a:hover {
    	background: #FF6BA6;
    	color: #ffffff;
    #l_sidebar p{
    	padding: 3px 0px 0px 0px;
    	margin: 0px;
    	line-height: 20px;

    Thanks for looking

  2. muthukswamy
    Posted 6 years ago #

    The problem here is

    a {display: block;}

    Remove the block attribute.

  3. bradstinyworld
    Posted 6 years ago #

    thanks removing that and the inline so they weren't bunched up did the trick. it is always the simplest of things...

Topic Closed

This topic has been closed to new replies.

About this Topic