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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:10:34+00:00 2026-05-27T20:10:34+00:00

I have a fair amount of CSS knowledge, but I’ve been stumped while trying

  • 0

I have a fair amount of CSS knowledge, but I’ve been stumped while trying to achieve a unique navigation bar for a website I’m working on.

Since pictures are worth over 9000 words, I put together a diagram to represent the scenario.

Diagram

The #container (blue) is 1000px wide and has 25px rounded corners. At the top of the container is the #navbar (green) which is the full width of the #container and is 55px high (it matches the top, left, and right edges of the #container, but I enlarged it in the image so you could see it better). Inside of the #navbar are the different navigation buttons (red). I want all of the buttons to be equally wide (and always stretch from one side to the other), and the buttons on the far left/right to have rounded corners like the grandparent #container. The solution need to be pure and strict CSS and work across most modern browsers (except IE 8 and under).

I want this to be a learning experience, so if you post the code, please provide some explanation.

  • 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-27T20:10:35+00:00Added an answer on May 27, 2026 at 8:10 pm

    HTML:

    <nav>
        <span>1</span>
        <span>2</span>
        <span>3</span>
    </nav>
    
    <div id="container">
    </div>
    

    You should probably turn that into a list…

    CSS:

    nav {
        display: table; /* see below */
        width: 1000px;
    }
    #container {
        height: 400px;
        width: 1000px;
        background: blue;
        border-radius: 0 0 25px 25px; /* top-left top-right bottom-right bottom-left */
    }
    nav span {
        display: table-cell; /* spreads them equally across, no matter how many elements */
        height: 55px;
        background: green;
    }
    nav span:first-child {
        border-radius: 25px 0 0 0;
    }
    nav span:last-child {
        border-radius: 0 25px 0 0;
    }
    

    Here’s the fiddle: http://jsfiddle.net/GHVSZ/

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

Sidebar

Related Questions

I am fairly new to Perl programming, but I have a fair amount of
I have done a fair amount of searches, but couldn't find any thing regarding
I have a fair amount of practice with Java as a programming language, but
I have a fair amount of experience using MOQ, while I've recently have stumbled
OK so I have read a fair amount about SQL Server's locking stuff, but
Recently I've been messing around a fair amount with OpenGL, and I have come
I have a fair amount of Facebook development experience, but this had made me
Hey everyone. I have a fair amount of experience developing iOS apps, but nothing
I'm writing some tests in Perl which have a fair amount of set up.
I have a fair bit of knowledge of Java and C#.NET (prefer C#). What

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.