Closed (won't fix)
Project:
Zen
Version:
6.x-1.0
Component:
CSS/HTML Markup
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Sep 2009 at 13:52 UTC
Updated:
16 Dec 2010 at 21:13 UTC
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
Comment #1
Tom Ash commentedOK, 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
Comment #2
jmking commentedI'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...
Comment #3
akalata commentedClosing old and inactive support requests.