Jump to content

help with categories block please. thank you


Recommended Posts

hi all, im after a little bit of help regarding my categories block.

Currently i have each category surrounded by a box which now i dont like.

I had a fiddle with it and have got rid of the box but theres some horrible mess to the left of the block shown in the picture below:

http://img141.imageshack.us/i/helpyq.png/

Im simple looking to clear up the mess and create a simple line all the way through to seperate the categories.

many thanks and i look forward to your replies,

kind regards,

Ryan

Link to comment
Share on other sites

Many thanks indeed! works a treat.

Now the only other question i have is:

What do i do so that a line in inserted between each of the different categories.

I would like the line to not be too the very edge but just short of it either side.

Similar to the one below


aaaa | category 1 |
aaaa | - - - - - - - |
aaaa | category 2 |

Link to comment
Share on other sites

The original global.css has the CSS for the categories block like this:

/* Category tree (i.e. in sitemap) */
div.tree_top {
   background: url('../img/sitemap-top.gif') no-repeat -1px -3px;
   padding-left: 24px;
   padding-bottom: 5px;
   padding-top: 3px
}
ul.tree, ul.tree ul { list-style-type: none }
ul.tree li {
   padding-left: 1.2em;
   border-left: 1px gray dotted;
   background: url(../img/sitemap-horizontal.gif) no-repeat left 10px;
   margin-left: 1em
}
ul.tree a { padding-left: 0.2em }
ul.tree a.selected { font-weight: bold }
ul.tree li.last {
   background: url(../img/sitemap-last.gif) no-repeat -12px -2px;
   border: none
}
span.grower { cursor: pointer }



Is yours the same?
DO you have the images above?

Link to comment
Share on other sites

The div#categories_block_left ul.tree li CSS in your theme

div#categories_block_left ul.tree li {
 background: none repeat scroll 0 0 transparent;
 font-size: 12px;
 font-weight: bold;
 line-height: 22px;
 margin-left: 0;
 margin-top: 5px;
 padding-left: 12px;
}



Change it to this:

div#categories_block_left ul.tree li {
 border-color: -moz-use-text-color -moz-use-text-color #DDDDDD;
 border-style: none none solid;
 border-width: medium medium 1px;
 font-size: 12px;
 font-weight: bold;
 line-height: 22px;
 margin-left: 0;
 margin-top: 5px;
 padding-left: 12px;
}

Link to comment
Share on other sites

×
×
  • Create New...