Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By phicarre on
How to change the background color of a specific node ?
Comments
quick fix
Well, the easiest way would be to add a wrapper div to the node and then style that wrapper in CSS. E.g., say the body of your node looks like this:
Change it to this:
and add the following CSS to a stylesheet for your theme to make the node have a red background:
That's not the best way to do it if you want to do it more than once, but it gets the job done.
=======================
Just another newbie.
XHTML Strict: it's the way to be.
=======================
Feature request: HTML Source Formatting in TinyMCE
or.. try the node_style.module
errr, maybe not :) after trying the module i realised it does not have css functions but does other rather clever thing that overrides PHPTemplate variables.
would be nice if also overwrite CSS the styles though
I didn't find
I didn't find node_style.module, Could you explain ?
link to module
http://drupal.org/project/node_style
(I've never used it, but thought I'd help you with the link.)
You can find modules by going to the "Downloads" tab here at drupal.org and clicking on "Modules." The "Browse by name" tab will list all the contributed modules that are not included with the Drupal core.
=======================
Just another newbie.
XHTML Strict: it's the way to be.
=======================
Feature request: HTML Source Formatting in TinyMCE
I mean I didn't find for the
I mean I didn't find for the 5.x version ...
Then I'm guessing there
Then I'm guessing there isn't a 5.x version yet. :)
=======================
Just another newbie.
XHTML Strict: it's the way to be.
=======================
Feature request: HTML Source Formatting in TinyMCE