Posted by coldpookie on December 13, 2012 at 1:39pm
My drupal them has 0 padding in the main content area, which is what I want for most pages, however not for all.
Is there anyway to alter the padding of a node (body field). I was kind of hoping that I could add some code to the body field and then my body text would have extra padding around it.
A friend of mine said p style="padding:10px" might work?
Or will I have to re code my theme?
Cheers
Comments
Use Node Class Module
Hi,
I will suggest you use this module:
http://drupal.org/project/node_class
So, when creating your node , simply add a class like body_padding or whetever you prefer.
then in your theme css file, define this class as follows:
.body_padding {padding:10px;}
This way you can specify this for many nodes that need the padding and the style is set only once in your css file rather than adding inline style in your content
Hope that helps
Jay
Nice
That will do nicely, cheers Jay.
I'll give it a go