Active
Project:
Omega
Version:
7.x-3.0
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Feb 2012 at 15:14 UTC
Updated:
8 Jun 2012 at 16:01 UTC
Jump to comment: Most recent file
Comments
Comment #1
ryandao commentedI'm having the same problem. Have you figured out a solution?
Comment #2
avolve commentedYou should be able to achieve this using the #zone-preface-wrapper div.
Depending on how you have configured your Omega subtheme, this may stretch across the entire browser width. If you want it for a specified width inside of this, you should be able to achieve it with #zone-preface div
Comment #3
ryandao commentedThe thing is if I set the width of the #zone-preface div (in my case it's #zone-content), it'll break the layout because the widths and paddings of the inner regions are already specified. I don't think this is something very difficult to achieve but somehow I'm stuck...
Comment #4
avolve commentedHaving the specific example to look at (i.e. a sandbox of your site) would make it easier to see what you are doing. Even an mock-up would help. For example,
• do you want the background to span the entire width of the browser window, or a set width (you refer to zone-content. There is also zone-content-wrapper)?
• for the prefix and suffix you refer to, are these in the same zone as the left and right regions?
How you have described it is a little confusing...
Comment #5
ryandao commentedSorry for hijacking this thread, but since my problem is similar to the thread owner, I'll just post an example of what I want to achieve for my website.
Basically there are 2 regions in the Content zone: Content and Sidebar Second. The Content region has a prefix of 1 column and the Sidebar Second region has a suffix of 1 column. Now I want to make a background that spans both of the regions but excluding the prefix and suffix, i.e. from column 2 to column 11. The HTML structure looks like this:
The "zone-content" div spans the entire window, so I cannot set a background on that one. How can I create a wrapper div that covers only the visible area of the Content and Sidebar Second regions?
Comment #6
pepemty commentedI have the same problem as #5
Warm regards!
Comment #7
pepemty commentedSorry to bump this thread.
Has anybody found a solution to this. I also have a similar problem as #5.
Best regards!
Comment #8
sokrplare commentedAs far as I know, there isn't a clean way to do this with Omega. However, a few potential approaches to hack around it come to mind:
Again, none are ideal, but maybe one will do the trick for you.
Actually, thinking about this a bit further, perhaps the best option would be to override
omega/omega/templates/zone--content.tpl.phpand add a div wrapper aroundprint $content;...Comment #9
pepemty commentedThank you, Joshua!
That's what a love about Drupal: It's great community and all the possibilities that the code offers.
You gave me four great options, but I found a different approach for my issue.
Since my background image has to tile, and I need different screen sizes, I made a copy to fit the 8 grids of each screen size.
Then I put the correct image inside the right zone, and with a bit of CSS magic I centered --background-position: center;
Works for me!
Warm regards from sunny México!
: )
José
Comment #9.0
pepemty commentedMinor edit to try to make the question clearer