SimSon
|
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
|
Strange,
normally drupal suppress a column when empty, and articlebecomes wider
|
|
Me
|
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
|
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...
This template is 200+500+200=900px
What is problem with three column? Help me please!
|
|
Greywolf
|
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
|
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
|
|