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

  • Home
  • SEARCH
  • 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 8060451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:59:38+00:00 2026-06-05T09:59:38+00:00

My website here is a wordpress website but I believe the only thing I

  • 0

My website here is a wordpress website but I believe the only thing I need to fix for an issue I’m having is the header height. The home page as a rotating banner which is 403px high and then all other pages have a header image of 303px high. I’m just trying to get the header height to be auto so the #container will automatically hug the bottom of the banner no matter it’s height.

CSS

header { width: 960px; height: auto; margin: 0 auto; display: block;}

#container { width: 960px; margin: 20px auto; padding: 0 1.5em;}

What else should there be so the #container realizes that the header is there?

UPDATE:

NEW HTML

<div style="clear:both;"></div>
</div><!-- end of container-->

NEW CSS

#banner { 
    width: 960px;      /* same with already defined */
    height: 403px;
    margin: 0 auto;
 }

The only thinkg i did slightly differently was place the navigation under the header instead of the banner as it was underneath the banner of which i don’t want. It looks the same however the doesn’t seem to be doing anything differently then what I had previously. I still have that gap on the blog page under the banner.

I appreciate the help Zuul. I do think I have a bit more to go and then we can figure this out. Thanks!

  • 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-05T09:59:40+00:00Added an answer on June 5, 2026 at 9:59 am

    The issue with the layout doesn’t lay over the header tag, there are some elements positioned weirdly that are causing several problems:

    This is a list of things to do in order to rectify the layout flow:

    1)

    Remove the <div id="banner"> from within the <nav id="main-navigation">.

    The <nav id="main-navigation"> is set to height:70px and the slider is far taller than that.

    Place it as a child of the <header> or after the <header> and before the <div id="container">.

    e.g,

    <header>...</header>
    <div id="banner">...</div>     <!-- here is better -->
    <div id="container">...</div>
    

    2)

    After the first step, you can then remove from your #banner the following CSS:

    REMOVE

    #banner {
        left: 50%;
        margin-left: -480px;
        position: absolute;
        top: 69px;
        width: 960px;
        z-index: 1;
    }
    

    ADD

    #banner {
        width: 960px;      /* same with already defined */
        height: 403px;
        margin: 0 auto;
    }
    

    3)

    The step 01 and 02 should fix the #banner position along with the header height issue.

    Now remains fixing the #container that contains floated elements and should be cleared at the end.

    Here, your current class clearfix will not work, contains to many declarations, I would suggest:

    <div id="container">
    
       <div id="main">...</div>
       <aside>...</aside>
    
       <div style="clear:both;"></div>
    
    </div>
    

    Adding that new <div style="clear:both;"></div> at the very end of the #container will allow the float to be cleared and the document flow to resume normally.


    EDITED

    First phase is done, now the only thing you need to do is to remove the height from the #banner, and the gap will go away.

    #banner {
        width: 960px;      /* keep this */
        margin: 0 auto;    /* keep this */
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

so google ads are not displaying on the home page of my wordpress website,
So here's another IE cross-compatibility issue. My website, www.zerozaku.com, is compatible with Chrome and
I've implemented OpenID on my website but I'm having a hard time finding a
I have this question on the Wordpress stack exchange as well, but not having
I'm putting the final touch to my friend's portfolio website (using wordpress) but I'm
Here is what i did; I made a wordpress website and i wanted to
I am developing a website with Wordpress self-hosted CMS. In one of the page,
I'm currently using 'wp_list_pages' to display child pages within my wordpress website. Here is
I'm having some issues with a Wordpress website I recently built. I have implemented
I have a wordpress website where in post page I have a jquery fixed

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.