Jump to content

Change background colour in categories block


Recommended Posts

Hello!

I'm started few weeks ago in the prestashop's world. I'm stopped since last saturday trying to change the colours of the categories block. I want a different color for each category but I'only can change the backgound color of all the block.

Please, can anyone give me a hand? What I've to do?

Thanks

Quelet

post-322384-0-94210000-1327949421_thumb.jpg

Link to comment
Share on other sites

I've this code:

<div id="categories_block_left" class="block">

 

<h4>Categories</h4>

<div class="block_content">

<ul class="tree dynamized" style="display: block;">

 

<li>

 

 

<a title="" href="http://xxxxx/category.php?id_category=5">Paper</a>

</li>

 

<li>

 

 

<a title="" href="http://xxxxx/category.php?id_category=6">Estampació</a>

</li>

 

<li>

 

<li>

 

 

<a title="" href="http://xxxxx/category.php?id_category=8">Enquadernació</a>

</li>

<li>

 

 

<a title="" href="http://xxxxx/category.php?id_category=9">Abecedaris</a>

</li>

But I only have on rule for all the elements of the list:

 

#categories_block_left .tree a {

 

 

color: #374853;

padding-left: 0;

}

It's possible to make a rule for the first element, anoher for the second, ...?

Many thanks

Quelet

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...