chopficaro — 2012-03-10T19:23:47-05:00 — #1
check it out with the firefox inspector, the body only takes up a tiny part of the page, why?
trying to put page browsing links at the bottom but they get hidden behind the subscribe button because the body is so small
ralphm — 2012-03-10T20:12:30-05:00 — #2
I've moved this to the CSS forum, as it's not a PHP question.
You have a lot of floated elements sitting directly on the body element. It would be better to wrap all of your content in a "wrapper" div (one or more) and then set overflow: hidden on that div so that it wraps around the contents. A container element doesn't wrap around floated contents by default. overflow: hidden on the container is the easiest way to change this, but it has bad consequences if you do that on the body element itself.
ryanreese — 2012-03-10T20:13:53-05:00 — #3
Hello :). One reason is b ecause you basically have two parents in that page. One is absolutely positioned so there is no way that the parent can know it's there. It's taken out of the flow :).
Next one, #paragraph, has all the content basically, but it's all floated inside. That takes elements out of the flow as well. The parent doesn't even konw it's there. YOu need to contain the floats and thus allow the body to extend its' height.
Try adding overflow:hidden; to #paragraph and you'll see the body extend (because #paragraph gets taller due to it containing the children, and as a result the body gets bigger from seeing #paragraph got bigger)
chopficaro — 2012-03-11T15:09:07-04:00 — #4
thanks guys, works great
sorry for posting in the wrong forum,
i should have realized it was a css problem
system — 2014-10-07T22:05:52-04:00 — #5
This topic is now closed. New replies are no longer allowed.