Forums / Setup & design / Different css for each node possible?

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Different css for each node possible?

Author Message

Noicokuna Niemoge

Friday 30 January 2009 5:22:26 am

Hi there;

Just as the title says, I wonder if anyone tried this approach. I'd like to have slightly different colours in each node, I wonder if it's possible?

Thanks in advance.

Shiki soku ze ku...

Fátima Chapri

Friday 30 January 2009 12:13:41 pm

Hi Noicokuna,

I tried that once and I worked with the class of the main div of the page.

Let's Imagine an example where the id of the node you want to have in a different color is 2. Than, the div#page will be presented like:

<body>
<div id="page" class="sidemenu extrainfo section_id_1 subtree_level_0_node_id_2 current_node_id_2">
......
......
</div>
</body>

You can use the class

.current_node_id_2

to define different colors for each node.

Noicokuna Niemoge

Saturday 31 January 2009 5:41:48 am

Thank you :)

So it means that I'll have to create styles for each child node as well. Well, but it's good it's possible at least. :)

Shiki soku ze ku...