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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T02:47:04+00:00 2026-05-14T02:47:04+00:00

I am not an expert web-dev so please bear with me here. I would

  • 0

I am not an expert web-dev so please bear with me here.

I would like to display a banner style header for a page with the top part taken up by an image that is 275×116 and then a horizontal menu bar (styled using ul items) appearing at 70% from the top of the banner.

How would I set this up so that the banner appears underneath my navigation? Currently, a portion of the left side of my menu bar sits underneath the image but I’d like it to be the opposite so the menu bar is above the image, some thing like this:

   ============= <start of header> ===========
   --------
   |  img   |
   |        |
   |      Horizontal menu 
   |        |
   --------
   ============= <end of header> ===========

My css:

#header
{
    background-color: green;        
    border: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100%;    
    height: 120px;
}

#logo
{
    background: green url(images/logo.png) no-repeat scroll 0 0;
    margin: 0px 0px;
    border: 1px solid white;    
    left: 20px;
    top: 20px;
    width: 275px;
    height: 116px;
    position: absolute; 
    z-index: -1000;
}

.container {
    border:1px solid grey;
    margin-left:auto;
    margin-right:auto;
    width:960px;
}

My Html:

<body>

<div id="header">
   <div id="logo">
   </div>

   <div class="container" id="primaryNavbar">
    <ul>
       <li><a href="#">Home</a></li>
       <li><a href="#">Books</a></li>
       <li><a href="#">Shows</a></li>
       <li><a href="#">Movies</a></li>
     </ul>                  

    <div class="clear">&nbsp;</div>                 

    </div> <!-- end of container -->

</div> <!-- end of header -->
</body>

I thought that setting the position to “absolute” for the logo element and adding in a very low z-index would achieve this but that isn’t the case here.

Any suggestions?

  • 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-05-14T02:47:05+00:00Added an answer on May 14, 2026 at 2:47 am

    Append these items to your existing styles:

    #header
    {
        position: relative; //this will keep your absolute items inside of this container
    }
    
    #logo
    {
        z-index: 1;
    }
    
    .container {
        z-index: 2;
        position: absolute;
    }
    
    .container ul li {
        float: left;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm not a security expert by any means, but I favor creating REST-style web
I not a DB expert, so am looking for advice for a web-based system
I do not have much experience coding systems dealing with web-services. Please help me
Check out this web page: http://dev.driz.co.uk/attachment.html dead link As you will see you get
Not a SFDC expert but need to integrate a web form hosted in SFDC.
I'm not expert about css menus. But I know basic system to make css
I am not AXIS2 expert, therefore I am using Eclipse to generate bottom -
I'm not very expert on how processors work, but one might imagine that it
I'm not php expert and I don't know what's the difference(1) between a and
First off, I'm not an expert with MySQL queries, and I can't seem to

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.