Quote:
Originally Posted by abcdefgary well, I did look around myself, and this isn't really possible because the categories are looped by codes (if you get what i mean) so, in fact, by putting <ul> codes around the categories makes them indent and each category will be surrounded by its own <ul> code.
so if I put <b> around the category, all of them will be bolded. |
Auch!!!
Never use the <b> tag, but make things bold with your CSS.
To fix this problem, make sure the HTML in the tpl's look something like this:
Code:
<div id="steef_solution">
<ul>
<li>Main Cat</li>
<ul>
<li>Secondary Cat</li>
<li>Secondary Cat</li>
</ul>
</ul>
</div>
After that, just put something like this in your CSS:
Code:
#steef_solution ul li {font-weight:bold;color:red;}
#steef_solution li li {font-weight:normal;color:blue;}
Result is (tested and works):
Quote:
- Main Cat- Secondary Cat
- Secondary Cat
|
To get rid of the bullets, just add "list-style:none;" (without the quotes) to the corresponding line in your CSS. Making you own buttons is nicer anyways. To create a nicer button, use something like:
Code:
#steef_solution ul li a {
display:block;line-height:2;
font:bold 12px arial;text-decoration:none; //nice font, no underline
padding:5px 0 5px 25px; //create some space for the bullet
background:#fff url("../images/my_nice_looking_button.gif") no-repeat 0px 8px
}
#steef_solution ul li a:hover {
color:#c00; //some other font color when hovering
background:#ccc url("../images/my_nice_looking_button.gif") no-repeat 0px 8px //some other bg color when hovering
}