How to do that ?! Thanks.

Comments

rfay’s picture

You can only add on a specific list of pages. However...

If you use firebug to explore the structure of your HTML for each node, you'll find that each node section has distinctive markup. I think this varies by theme, but for example, the first node I checked had

<div typeof="sioc:Item foaf:Document" about="/node/289" class="node node-amazon-example node-promoted node-teaser contextual-links-region clearfix" id="node-289">

So you can target it with

.node-amazon-example {
whatever...
}

rfay’s picture

Status: Active » Fixed
W.M.’s picture

It is possible to target specific node types without using this module. I recall that I had a custom module at one of my sites that injects CSS dependent on node type (using else, elseif etc..).

That was back in Drupal 6, so I guess that the code needs adjustments in order to work inside Drupal 7.

I posted here because I believe it is always better to have one module that can do all related functions.

Maybe the developers will look into this in future releases of CSS Injector.

So far a great module. CSS files can grow very large on every site's page without this handy module.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.