Closed (fixed)
Project:
AdaptiveTheme
Version:
6.x-2.0
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Feb 2010 at 01:13 UTC
Updated:
7 Oct 2011 at 22:29 UTC
Jump to comment: Most recent file
Comments
Comment #1
Jeff Burnz commentedI suppose I dont really understand what you are requesting here - can you describe what you are wanting to achieve rather than the implementation - what do you hope to achieve by wrapping things in SPAN elements?
Be aware also that wrapping block level elements like DIV's in an inline level element like a SPAN is invalid XHTML.
Comment #2
stevenwood commentedsorry bad use of words there...
i dont mean span as in a html element.
i want a background to tile across the full width of the page for the tertiary region or the footer region not just in the container area which is currently set to 960px.
does that make more sense? i have added an image to hopefully try and explain what i mean, if your still confused..
Comment #3
Jeff Burnz commentedThe most robust way is to remove those regions from the #container div, its easier than it seems dude, just take them out and place them below the container div so they expand to the full width of the page.
Comment #4
Grizz commentedWzzzzup Jeff,
I think he's referring to the div's secondary-content,content-top,content-bottom,tertiary-content, do not expand horizontally with content/blocks.
I have/had same problem, tried adding a wrapper inside the region(s) among other things, but height in the CSS is the only thing that works.
Any other way to get these regions to expand with content?
Grizz
Comment #5
Jeff Burnz commentedOK, I think you mean about clearfixing the region if you are floating blocks?
You can add
class="clearfix"or if you use the dev version theres a markup free method in starter.css that uses theoverflow:hidden;method for clearing floats.Comment #6
Enzomaticus commentedYou might want to take a look at the fusion theme to see how that handles this situation. It has a very easy way to use a full width background for the main content areas without much difficulty. Perhaps you can wrangle their method into AT quite easily.
I'm assuming that what you want to do is easily have a full width footer (or other region) while the rest of the page keeps its 960 width? If not, please disregard my answer.
Comment #7
stevenwood commentedThanks Jeff, I was trying to make something simple, over complex...
Comment #8
gmclelland commentedI just ran into this issue as well. I think the best approach is how the Fusion theme handles it. They add a wrapper div with an id="row" around each region. Basically each major part has three things:
1. A row div
2. The region div
3. The region inner div
So if you had three parts to your layout say top, main, footer then it would look like
The row div is set to expand 100% width
The region div is set to 960px or what width the main layout is
You set your margins and padding on the region inner divs instead of setting them on the region div so you don't break the grid's layout
So what's the best way to approach having backgrounds that span the full width, but still having you content inside of your layout width?
Do we just add the additional divs as wrappers?
Thanks for your help
Comment #9
Jeff Burnz commentedYes, that is exactly what I do - add a wrapper that expands the full width then I add a new class to the DIV's I want to take the width. You can override the layout variable and add this class so it gets the width set on it, so you retain the width theme settings.
I would never add this to the core theme because core is all about being lightweight, I do not like Fusions output at all, its verbose in the extreme and very bloated. AT is about starting off with less, then adding what you need.
Comment #10
gmclelland commentedSorry Jeff, I don't quite follow what you are saying. Attached is what I'm trying to achieve. Sorry about the ugly colors.
Are you saying to set the width of div id=container to 100% and then add a wrapper div around each region ie. Header, Content, Footer with a class of row? Then set a class like "inner-container" on Header, Content, Footer and set the width of inner-container to 960px?
Sorry, I just need you to elaborate a bit more. I'm new to the Adaptive Theme.
Comment #11
scarer commentedYes I am also trying to do something similar. I want to add a new full page wrapper that has a repeatable image at the top and then I want the footer region to have a repeatable background for the entire width of the page and the content of the footer region confined to the 960px wrapper.
So where do you add this class to your adaptive theme sub theme?
Comment #12
Jeff Burnz commentedOK, sorry for taking so long with this, been a bit wrapped up with D7 development since we're getting close with that now, its all go!
I wrote a tutorial about this on my own site, so many people can find it: http://bit.ly/d2YoAY
Comment #13
gmclelland commentedThanks Jeff, very helpful.
Comment #14
Jeff Burnz commented