• Hey all,

    First off, I just want to note that WordPress has been a godsend with regards to getting my idea for a short-form news blog off the ground. I’ve been able to do a lot of really cool things with custom fields that allow me to bring my idea to reality.

    Anyway, I’m still in the process of coding the site and I happened to run into a problem with my inline list. For whatever reason, there appears to be an extra tab/space being put between entries.

    Here’s the relevant HTML code:

    <div id="headwrapper">
    	<a href="<?php bloginfo('url'); ?>"><div id="header">
    	</div></a>
    	<div id="navmenu"><ul><?php wp_list_categories('show_option_all=All&exclude=4,7&title_li=') ?></ul>
    </div></div>

    And the relevant CSS:

    #navmenu ul {
    	background-color: #626463;
    	margin: 0;
    	padding: 0;
    	list-style-type: none;
    	list-style-image: none;
    	}
    
    #navmenu li {
    	margin: 0;
    	line-height: 100%;
    	display: inline;
    	list-style: none;
    	}
    
    #navmenu ul li a {
    	border-right-style: dotted;
    	border-right-color: white;
    	border-right-width: 1pt;
    	letter-spacing: 0pt;
    	word-spacing: 2pt;
    	padding-left: 10pt;
    	padding-right: 10pt;
    	font-size: 16pt;
    	height: 22pt;
    	line-height: 22pt;
    	font-weight: lighter;
    	background-color: #626463;
    	color: white;
    	}
    
    #navmenu ul li a:hover {
    	text-decoration: none;
    	color: white;
    	background: #c00c20;
    	line-height: 22pt;
    	}
    
    li .cat-item .current-cat {
    	text-decoration: none;
    	color: white;
    	background: #c00c20;
    	line-height: 22pt;
    	}

    Also, if anyone has thoughts on my site, I have an early version of it sitting at http://www.shrtfrmblg.com/wordpress/. As I’m still trying to tweak the code to work properly in IE, any opinions or suggestions would be greatly appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Extra tab being added between wp_list_categories LI?’ is closed to new replies.