Hi,
I'm excited by this theme and trying it for the first time (I normally use Zen or Basic). But I'm having a bit of a problem with a background: there's about 5-10px of background color above the header that I can't seem to get rid of.
I've tried going back to the raw Genesis subtheme, adding a background color and white background to obvious selectors, tried to find margin or padding somewhere which might be causing it.
I know I'm probably overlooking something simple, but can you point me in the right direction?
Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | testsite.jpg | 54.23 KB | glennr |
Comments
Comment #1
Jeff Burnz commentedCan you explain a bit more about the situation, not sure I actually follow exactly what you mean, are you tiling a background image and theres a gap at the top or do you want the header to sit hard against the top and theres a gap?
A screenshot might help in this situation.
Comment #2
glennr commentedSorry, should have made that clearer. Anyway, yes, I want the header to sit hard against the top. I will want a background image, but I just tried a background color first when I noticed the gap at the top. Attached is a screenshot in IE7. The gap is a little smaller in Firefox 3 but it's still there. Here's the CSS I've added to the page.css file of an otherwise untouched genesis_SUBTHEME.
I've tried playing with margins and padding, too. Like I said before, I'm sure I'm overlooking something obvious . . .
Comment #3
Jeff Burnz commentedThis is margin/padding added by the browser to the body element, by default I don't "zero" it out in Genesis because in 100% width it makes everything sit hard against the edges and the aesthetic of a bit of margin between the left/right edges and the browser chrome looks better.
To get rid of it open up your subthemes style.css file and add this to the body element:
Regarding your CSS above, just a tip, for backgrounds etc you only need to add them to
.container {}, as this will be applied to all browsers, you only use thebody > #container {}if you want to override IE6. In fact the only reason I have used that tricky set up is to show, as an example, how you can have a min & max width and have it fluid between those widths.Comment #4
glennr commentedYep, as I expected, I was overlooking something obvious. Thanks for the .container tip, too.
Thanks also for Genesis, your other themes and all your support both here and in the forums.
Comment #5
Jeff Burnz commented