Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7814103
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T05:05:26+00:00 2026-06-02T05:05:26+00:00

Alright, this is a weird problem I’m having. I have two pages, which are

  • 0

Alright, this is a weird problem I’m having. I have two pages, which are slightly different, but that share several of the same elements (two images, basically).

These images are both controlled by the same CSS style sheet, however, they both seem to be about 20-30 pixels lower on the second page.

The second page is different in the fact that it uses PHP before the Doctype Declaration. However, as said later on, I don’t think this is the problem.

To see this effect, look at both of these pages consecutively: http://www.codecreek.biz/login and http://www.codecreek.biz/registration/register.

Just to be clear, I’ve looked at many possible answers on this already. This doesn’t appear to be my case, as I’m not using a table on these pages.

Here’s what I’ve tried:

  • Checking for whitespace in the code. However, if you view the sources for both of these pages, you’ll actually notice that the second, problematic one has one less line of whitespace at the top, before its Doctype Declaration.
  • Removing the PHP code from the second page. This didn’t have any effect either.
  • Reducing the apparent space between the closing PHP tag ?> and the <!DOCTYPE HTML> to nothing. This again didn’t have any effect.
  • Checking for a BOM. I did this using vim, and the results confirmed that no BOM was used.
  • Checking my CSS. I didn’t find anything strange, but I’m quite a novice at CSS, so, as this might be the problem, here’s the link to my style sheet: http://www.codecreek.biz/resources/main.css. (Disclaimer: I’m in the process of rewriting that page, so if it looks quite strange, there you go !).

Additionally, Safari’s developer inspection tool clearly shows that the <body> tag on my second page only begins around 20 pixels down.

I’m honestly quite lost. I’m hoping there is a simple fix for this, but I’ve been working on this for several hours to no avail.

EDIT: Here’s the CSS, both for the ‘title’ image, and the ‘squiggly line’ image.

#login_title { position:absolute; width:1000px; top:100px; }
#login_line { position:absolute; width:500px; top:330px; left:250px; }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T05:05:27+00:00Added an answer on June 2, 2026 at 5:05 am

    The H1 on the register page has a default Margin to it. Sometimes, I don’t know why, if you give the first element a margin, it applies it to the parent.

    By giving the H1 #register_title a top margin of 0, you should fix your problem.

    #register_title { margin-top: 0; }
    

    Always remember to use a reset.css implementation or keep in mind that elements are styled by default.

    Edit:
    I’d like to point out that this was an issue because of all your previous elements were absolutely positioned. You really should not be using absolute positioning the way you are. You should use margin-top, padding-top to move elements down the page. Absolute positioning should only be used when no other avenues of positioning an element are available.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Alright. Now this question may come to you weird but i have to solve
Alright I know this is more than likely a amateur question but I have
Alright, this one's interesting. I have a solution, but I don't like it. The
Alright, this problem is a little complicated, so bear with me. I have a
Alright, I know this question has been asked before, but mine has a different
Alright, I have some weird behavior and this question goes to the people out
Alright, so heres my problem: I have an application I am working with that
Alright this probably is the worst error I have found ever. I have two
Alright, this may take a moment or two to explain: I'm working on creating
Alright, this is melting my brain. It might have something to do with the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.