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 8447689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:14:32+00:00 2026-06-10T10:14:32+00:00

I’m having an issue where only certain divisions are overlapping each other vertically. My

  • 0

I’m having an issue where only certain divisions are overlapping each other vertically. My second gray “pageBreak” is mounting atop my “subHeader” regardless of padding fixes and trying to staying on top of clearing floats.

I’ve tried overflow, clearfix, old-school “clear: both;”, and I’m still having the same problem. (I assume it’s a float-related issue.) I even tried (as you can see in the code) using relative and absolute positioning to get my second “pageBreak” below my “subHeader” as it should be but no positioning value even moves the second “pageBreak.” I also have my other divs below these referenced sneaking up to the top of my “subHeader.” I rather not use these fixes as I want the CSS to be as dynamic as possible for obvious reasons.

I feel like the code is pretty neat but I’m obviously missing something fairly obvious. Any help would be greatly appreciated!

I’ve included the HTML and CSS of the page for your review.

HTML:

<div class="container">
<div class="header">
    <div style="float:left">
        <img src="images/Logo.gif" alt="Company Logo" width="345px" height="117px">
    </div>
    <div style="float: right;">
        <h2>Company slogan.&#0153;</h2>
    </div>
    <div style="clear: both;"></div>
</div>

<div class="pageBreak">
</div>

<div class="subHeader">
    <div style="float: left; width: 400px; text-align: left;">
    </div>
    <div class="form" style="float: right; width: 300px;">
        <form id='login' action='login.php' method='post' accept-charset='UTF-8'>
            <input type='hidden' name='submitted' id='submitted' value='1'/>
            <div>
                <label style="float: left;" for='username' >School Email</label>
                <input style="float: right;" type='text' name='username' id='username'  maxlength="50" /></br></br>
            </div>
                <div style="clear: both;">
            <div>
                <label style="float: left;" for='password' >Password</label>
                <input style="float: right;" type='password' name='password' id='password' maxlength="50" />
            </div>
                <div style="clear: both;"></div>
                    <p style="font-size: 70%; text-align: right; line-height: 8px;"><a href="app-test/forgot-password.php">Forgot your password?</a></p>
                    <p style="font-size: 70%; text-align: right; line-height: 8px;"><a href="register.php">Want to register?</a></p>
            <div>
                <input type='submit' name='Submit' value='Log In' style="float: right;"/>
            </div>
        </form>
    </div>
    <div style="clear: both;"></div>
</div>

<div class="pageBreak" style="top: 400px;">
</div>

CSS:

.container {
width: 1000px;
margin-left: auto;
margin-right: auto;
border-radius: 15px;
background-color: white;
box-shadow: 10px 10px 40px #888;
}

.pageBreak {
margin-left: auto;
margin-right: auto;
width: 900px;
border-top: rgb(238,238,238) 3px solid; 
}

.header {
padding-top: 30px;
padding-bottom: 30px;
padding-left: 50px;
padding-right: 50px;
}

.subHeader {
padding-top: 30px;
padding-bottom: 30px;
padding-left: 50px;
padding-right: 50px;
}
  • 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-10T10:14:33+00:00Added an answer on June 10, 2026 at 10:14 am

    Don’t know if this will solve the issue however it is too large for a comment…

    Your HTML is malformed, you are missing a few closing tags. This could be a copy error for the last tag, however the first looks to be genuine.

    See code below (I have commented where the corrections are needed):

    <div class="container">
        <div class="header">
            <div style="float:left">
                <img src="images/Logo.gif" alt="Company Logo" width="345px" height="117px">
            </div>
            <div style="float: right;">
                <h2>Company slogan.&#0153;</h2>
            </div>
            <div style="clear: both;">
            </div>
        </div>
        <div class="pageBreak">
        </div>
        <div class="subHeader">
            <div style="float: left; width: 400px; text-align: left;">
            </div>
            <div class="form" style="float: right; width: 300px;">
                <form id='login' action='login.php' method='post' accept-charset='UTF-8'>
                    <input type='hidden' name='submitted' id='submitted' value='1'/>
                    <div>
                        <label style="float: left;" for='username'>School Email</label>
                        <input style="float: right;" type='text' name='username' id='username' maxlength="50"/></br></br>
                    </div>
                    <div style="clear: both;">
                        <div>
                            <label style="float: left;" for='password'>Password</label>
                            <input style="float: right;" type='password' name='password' id='password' maxlength="50"/>
                        </div>
                        <div style="clear: both;">
                        </div>
                        <p style="font-size: 70%; text-align: right; line-height: 8px;">
                            <a href="app-test/forgot-password.php">Forgot your password?</a>
                        </p>
                        <p style="font-size: 70%; text-align: right; line-height: 8px;">
                            <a href="register.php">Want to register?</a>
                        </p>
                        <div>
                            <input type='submit' name='Submit' value='Log In' style="float: right;"/>
                        </div>
                    </div> <!-- HERE -->
                </form>
            </div>
            <div style="clear: both;">
            </div>
        </div>
        <div class="pageBreak" style="top: 400px;">
        </div>
    </div> <!-- HERE -->
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
I would like to run a str_replace or preg_replace which looks for certain words
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I know there's a lot of other questions out there that deal with this
I'm trying to select an H1 element which is the second-child in its group

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.