sorry i am new to drupal and trying to learn as i go....

what i have is a site where the content area is 600px wide but i have to have a page with an iframe in it that needs to be 1000px wide. is there a way to change the content areas width for just that node? Any help would be appreciated

Comments

netbabu’s picture

Let's assume the specific node number of page is 24, then you can change the class name to be applied to the div using the following PHP code in page.tpl.php

if(arg(1) == '24')
{
     $class = 'iframeclass';
 
}
else
{
     $class = 'contentclass';

}

In the above code, I assume 'contentclass' is the name of the css class applied to the content div in normal pages and 'iframeclass' is the classname to be applied to the content div in that specific node. Change your style.css and apply appropriate with these css classes.

If you are using zen theme, every page will have specific id, you can change the width without touching page.tpl.php

-Babu
Promote Drupal with Tshirts/merchandise: http://paramprojects.com/drupalstore
Drupal Projects showcase: http://paramprojects.com/website/drupal-servicesprojects