Arranging blocks horizontally

gray97 - September 20, 2006 - 03:07

I couldn't find how to do this. I would like to put blocks horizontally. In other words, instead of vertically, in a row horzontally. Is there a module or way in Drupal to do this?

Thanks..gray97

I have done it this way

nevets - September 20, 2006 - 03:21

Blocks go in regions so you can define the regions how ever you like. As an example here is a horizontal region called frontpage_horizontal

<div id="frontpage-horizontal-holder">
<div id="frontpage-horizontal">
<?php print $frontpage_horizontal ?>
  </div>
  <br class="clear" />
</div>

I then float the blocks so they come out horizontal. You will also want to set the width of the blocks.

Just wondering whre you got

hectorplus - September 20, 2006 - 03:32

Just wondering whre you got the code. And where can i learn more about how to create regions.
Thanx.

tecito.com


Comunidad Latina en Canada, regístrate ya! Join the growing latin community in Canada.

The code comes from a custom theme

nevets - September 20, 2006 - 04:00

The code comes from a custom theme, you can learn more about regions in phptemplate at http://drupal.org/node/29139

Thanks a lot! I'll work on

gray97 - September 20, 2006 - 14:15

Thanks a lot! I'll work on it today.

gray97

 
 

Drupal is a registered trademark of Dries Buytaert.