I created a new template and added a row between 25% and 75%. I included the homepage content and the page title in the 75% block. How can I stretch 75% block extension while 25% block is empty on some pages? So if there is nothing in the 25% block, I want the 75% block to stretch to 100%. i hope i could explain

Example: http://www.drupal.web.tr/hakkimda me there is no plugin in the left block on this site, but the page should stretch

 

Comments

jenlampton's picture

How can I stretch 75% block extension while 25% block is empty on some pages?

There should be a class on the layout wrapper element "layout-no-sidebars" that you can use to target the right column to make it 100% width.

I know this is the case for all the core layouts with sidebars, but I haven't checked whether this class is also added on flexible layouts. It might not be, since we have no way of knowing if that smaller area qualifies as a "sidebar" or not. 

To write rules to blocks, there must be possibility to assign id and class for the block.