Jump to content

Page height with relative positioning


sanfly

Recommended Posts

I have a page (see [url=http://sanfly.com/testing/template_2.html]HERE[/url]) which uses relative positioning to pull the content up ~250px and layer with my header.  The problem is that I end up with a bunch of blank space at the bottom of the page (see the space below the yellow box.

Is there anything I can do to fix this?  View source for code.
Link to comment
https://forums.phpfreaks.com/topic/34078-page-height-with-relative-positioning/
Share on other sites

[quote author=sanfly link=topic=122295.msg504432#msg504432 date=1168762917]
I'm sorry, is that supposed to help me?
[/quote]

It sure will. The page you linked has no DOCTYPE specified so browsers may or may not display it as you expect. Using valid HTML would ensure that the page is displayed as you expect.  The w3c free validation service will show you what's missing/wrong from your code.

http://validator.w3.org/
Okay, so ive been working with the validator, and fixing the flash movie is going to take a little more time, so in this example ive replaced it with a div tag, and it validates great (see [url=http://sanfly.com/testing/template_1b.html]HERE[/url]).

So, back to my original question... How do I fix the unwanted blank space created when I use relative positioning?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.