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
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/
Link to comment
Share on other sites

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?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.