How can I extend middle colum if nothing is in side-columns?


Author Message
SimSon

Posted: 6/18/2010
Quote message 

Subject says it all:
I created a 3-column drupal theme, with 200/800/200px width.

I'm satisfied with it, but in the case there is no block in the right/left column, how can I make the middle column to extend to the full width (200+800+200px)?

Because now when I do not have any block in left/right column, they are simply there, empty. The middle one does not extend its width, and it looks strange...
 
Nicky

Posted: 6/20/2010
Quote message 

Strange,
normally drupal suppress a column when empty, and articlebecomes wider
 
Me

Posted: 6/24/2010
Quote message 

Look at your body classes for something like sidebar-first or sidebar-second or two-sidebars. Those are added by Drupal to allow you to style elements based on the presence or absence of sidebars.

Then check your style definitions for widths on #content. You should see several definitions, such as .no-sidebars #content, .two-sidebars #content, etc. Enter the appropriate widths.
 
Mykee

Posted: 11/22/2010
Quote message 

Not helped to me: just test sb002dw template on this test website with Internet Explorer 8: http://drupal.sablonbolt.com

I write to css "width:500px;" to .art-content-layout .art-content .art-block section, but nothing... Content width is 0...
:-X

This template is 200+500+200=900px

What is problem with three column? Help me please!
 
Greywolf

Posted: 11/23/2010
Quote message 

One thing you can look into is the drupal module, region visibility. Then you can set up how certain regions are displayed or hidden based on the types of pages your looking at (ie: content/admin/recipe/etc...) It's rather handy and may solve your issue. I use it to remove my sidebars on all my pages except my main home page, thus giving full width access to the content area. Just a suggestion.

Greywolf
 
Mykee

Posted: 11/23/2010
Quote message 

Here found a solution in JS file, maybe help for content fixing:

http://www.artisteer.com/Default.aspx?post_id=148613&p=forum_post&forum_id=22