How to skin a category page separately from others


I’m trying to style a specific catgory differently from the others.

I added in the products2.tpl file this code in red:

And in the main.tpl file, I inserted the code:

But when I check the source code in the browser, the ID field is empty, like this: id=" "

Any idea why this is not working??

Need to know what the url is that is accessing these templates (to determine what controller is being used). I’m assuming the $category is not defined in that context.

Why would you want to use a category_id for the ID of an html element?