I am trying to tweak a wordpress site but can’t seem to get one of my parent div’s backgrounds to be visible through the child divs on top. I’ve got the background image set for #main. The image I’m using fades to white at the bottom but, in the rendered page, I can only see about the top 23 pixels or so before the rest is blocked…I think by #primary.
The site uses a child theme based on Responsive and can currently be viewed here. I would copy/paste code for your convenience but I’m no longer certain what part of the code is responsible for what I’m (not) seeing. So I apologize in advance if this is not enough information to go on :-/
Looks to me like you have a float problem and the
div#main
is collapsing. Try one of the various clear-float techniques to prevent that.For example, try
#main { overflow: hidden }
as a test – that will normally prevent the collapse.Classic clear fix issue. Give #main an overflow:hidden or try the micro clear fix if any content is spilling out of the box.
The
#main div
is only 24px high. This is because all childdivs
are floating.add a
with
just before the closing tag of your
#main