Ahh I see!! Thank you Drake.
I've also come up with a ridiculously complicated CSS-only solution - which is probably considered cheating and may cause a bunch of unforseen problems - but I've tested it on five browsers and it *seems* to work.
First:
- Code: Select all
#horizontal-outer-widgets-2 {
background-color: #000000;
overflow: visible;
width: 10000px;
margin-left: -4540px;
}
Theoretically, the width is not infinite, so if someone had a large enough monitor they'd be able to see where the color fill ends. However, by setting it to 10000 px you're pretty much assured no one will ever get to see that (even zooming out all the way).
The problem is that as I said above, instead of being centered, the color fill starts from the wrapper border on the left, then continues to the right (and at 10000px the content gets lost somewhere off the page). But, by setting a negative left margin (IN MY CASE -4540px) I pulled it back and centered the content.
The second problem was that the individual widgets within the horizontal widget container became very wide and spaced out. The solution:
- Code: Select all
#horizontal-outer-widgets-2 .suf-widget {
width: 240px;
margin-right: -22px;
}
#horizontal-outer-widgets-2 .suf-widget targets JUST the individual widgets within the "container". I specified the width of each widget (in my case 240px) and added a negative right margin to pull them in a bit tighter together.
It takes some playing between the -4540px, the 240px and the -22px to find a combination that lines the widgets up correctly with your page (they're all interrelated, so when you change one value everything moves), but it's possible.
If this is a stupid solution, could someone tell me (and I'll take the plunge and make a child theme instead)? Thanks.
-----
update: OK well one problem is that this creates a horizontal scroll bar at the bottom of your page - and lets you scroll right for quite a ways... not the neatest of solutions.
UPDATE #2 Well, the footer.php solution doesn't work either... continuing this here:
viewtopic.php?f=4&t=9213