Forums

Categories Format Problem (5 posts)

  1. kmpoaquests
    Member
    Posted 3 years ago #

    My problem is When I use this code

    <div id="categories">
      <ul class="fix">
    		<?php wp_list_cats('sort_column=name&amp;optioncount=1'); ?>
    	</ul>
    </div>

    My categories usually list horizontally if I use this code BUT , because I only used one category and added many children categories it is being displayed vertically , is there anyway to force it to be displayed horizontally ?

    Please help me I'm desperate

    My site is

  2. stvwlf
    Member
    Posted 3 years ago #

    you need to add a CSS styling of

    #categories ul.fix li { float: left; } or
    #categories ul.fix li { display: inline; }

  3. kmpoaquests
    Member
    Posted 3 years ago #

    That didn't exactly help It ended up messing the position of the categories

    , could you help me check it out

    my site is http://phatbrush.com/

  4. stvwlf
    Member
    Posted 3 years ago #

    For starters, change this section (line 565)
    from this

    #categories li {
    display:block;
    float:left;
    margin-right:10px;
    text-align:right;
    width:150px;
    }

    to this

    #categories li {
    display:block;
    float:left;
    margin-right:10px;
    text-align:right;
    }

    you will need to tweak padding etc

  5. kmpoaquests
    Member
    Posted 3 years ago #

    Thanks a million my friend !

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.