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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:55:58+00:00 2026-05-11T17:55:58+00:00

I’ve quickly made up a sliding doors example but I’m incorporating it into my

  • 0

I’ve quickly made up a sliding doors example but I’m incorporating it into my header. The format of the header should be a fixed height header with a logo on the left and the sliding doors navigation buttons on the right. The background of the header should span the entire width of the browser, however the actual header (that is, the header logo and navigation on the right hand side) should be of a fixed width of roughly 900px and centred.

Any ideas on how to achieve this? I’ve tried the following:

<div id="header-outer">
    <div id="header-container">
        <a id="logo" href="<?php echo get_option('home'); ?>/"></a>

        <div id="header-nav">
            <ul>
                <li><a href="#">Home</a></li>
                <li><a href="#">Projects</a></li>
                <li><a href="#">About</a></li>
                <li><a href="#">Portfolio</a></li>
                <li><a href="#">Blog</a></li>
                <li><a href="#">Contact</a></li>
            </ul>
        </div>
    </div>
</div>

and the following CSS:

div#header-nav {
    float:left;
    width:100%;
    background:rgb(33,33,33);
    font-size:90%;
    line-height:normal;
    margin-top:90px;
}

div#header-nav ul {
    margin:0;
    padding:0;
    list-style:none;    
}

div#header-nav ul li {
    float:left;
    margin:0 2px 0 2px;
    padding:0 0 0 4px;
    background: url('images/tab_left.png') no-repeat left top;
}

div#header-nav a {
    display:block;
    background: url('images/tab_right.png') no-repeat right top;
    padding:5px 10px 4px 6px;
    text-decoration:none;
    color:#333;
}

div#header-outer {
    background: rgb(33,33,33);
    height:100px;
    display:block;
    clear:both;
}

div#header-container {
    text-align:center;
    margin:0 auto;
    width:900px;
    padding:0;
}
  • 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-11T17:55:58+00:00Added an answer on May 11, 2026 at 5:55 pm

    just trying to understand your issue.

    Do you want it to display like this…

    ---------|--------------------------------------------------|---------
             |                                                  |
             |  Logo                                Navigation  |
             |                                                  |
    ---------|--------------------------------------------------|---------
    

    Or like this…

    ---------|--------------------------------------------------|---------
             |                                                  |
             |                 Logo  Navigation                 |
             |                                                  |
    ---------|--------------------------------------------------|---------
    

    If you’re after the first example then that should be quite easy with the following css…

    #logo {
        float: left; /* floats logo to left */
    }
    
    div#header-nav {
        float:right; /* had to remove width of 100% so nav can accept float */
        background:rgb(33,33,33);
        font-size:90%;
        line-height:normal;
        margin-top:90px;
    }
    
    div#header-nav ul {
        margin:0;
        padding:0;
        list-style:none; 
    }
    
    div#header-nav ul li {
        float:left;
        margin:0 2px 0 2px;
        padding:0 0 0 4px;
        background: url('http://kieransenior.co.uk/images/tab_left.png') no-repeat left top;
    }
    
    div#header-nav a {
        display:block;
        background: url('http://kieransenior.co.uk/images/tab_right.png') no-repeat right top;
        padding:5px 10px 4px 6px;
        text-decoration:none;
        color:#333;
    }
    
    div#header-outer {
        background: rgb(33,33,33);
        height:100px;
        display:block;
        clear:both;
    }
    
    div#header-container {
        text-align:center;
        margin:0 auto;
        width:900px;
        padding:0;
    }
    

    If you’d like it to display like the second example you might have to manually center both the logo and navigation as I’m not sure if it’s possible to so this with in CSS cross browser. But I could be wrong someoene feel free to correct me.

    Hope it helps.

    • 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 have a French site that I want to parse, but am running into
I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
Seemingly simple, but I cannot find anything relevant on the web. What is the
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I need to clean up various Word 'smart' characters in user input, including but
i got an object with contents of html markup in it, for example: string
I am currently running into a problem where an element is coming back from

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.