How would I modify page.tpl.php to create a region above content and sidebar-right, spanning their width? In other words, it would like the following, where L is the left sidebar, C is content, R is the right sidebar, and N is the new region...

LLNNNNNN
LLCCCCRR
LLCCCCRR
LLCCCCRR
LLCCCCRR

The answer'd be hugely appreciated :)

Comments

Tom Ash’s picture

Status: Active » Needs review

OK, I think I've worked this out myself - I've added a #highlights region after ¢sidebar-right with the following CSS:

#highlights {
margin-left: 150px;
margin-top: 157px; /*Height of navbar */
width: 830px; /* Width of content + sidebar-right (250px currently). */
height: 15px;
float: left;
}

...and added 15px to the margin-top of #content and #sidebar-right

jmking’s picture

I'm also struggling with this exact issue. The solution provided in #1 is sound as long as you can rely on a consistent height for the region.

My problem is that the region I'm trying to add will expand vertically depending on the content. Zen is constructed in such a way that you can't just float a new region into the flow and then clear the content and sidebar-right regions because they're all out of order and use negative margin trickery.

I'm pretty sure this is impossible to do without re-ordering the regions which means totally re-building the layout css...

akalata’s picture

Status: Needs review » Closed (won't fix)

Closing old and inactive support requests.