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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:29:00+00:00 2026-06-11T20:29:00+00:00

In a navigation design I need to give border like this. I know how

  • 0

In a navigation design I need to give border like this. I know how to create double border but don’t how to create border which has some gap on top and bottom.

enter image description here

I know it can be done using an images but curious to know if it’s possible to make in CSS only

  • 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-11T20:29:01+00:00Added an answer on June 11, 2026 at 8:29 pm

    Yes, it can easily be done using just CSS.

    demo

    HTML:

    <ul class='navigation'>
        <li><a href='#'>nav item</a></li>
        <!-- as many navigation items as you would like -->
        <li><a href='#'>nav item</a></li>
    </ul>
    

    Relevant CSS:

    .navigation { padding: 0; list-style: none; }
    .navigation li {
        float: left;
        padding: .35em 0;
        border-top: solid 2px #e4e4e3;
        border-bottom: solid 3px #94a10f;
        background: linear-gradient(#fafafa, #e5e5e5);
    }
    .navigation a {
        display: block;
        padding: .5em;
        border-left: solid 1px #fff;
        border-right: solid 1px #a4a4e3;
        color: #000;
        text-decoration: none;
    }
    .navigation li:first-child a { border-left: none; }
    .navigation li:last-child a { border-right: none; }
    

    Alternatively, if you don’t want to have a non-clickable area at the top and bottom, you could try it the other way:

    demo

    CSS:

    .navigation {
        display: inline-block;
        overflow: hidden;
        padding: .35em 0;
        border-top: solid 2px #e4e4e3;
        border-bottom: solid 3px #94a10f;
        background: linear-gradient(#fafafa, #e5e5e5);
        list-style: none;
    }
    .navigation li {
        float: left;
        border-left: solid 1px #fff;
        border-right: solid 1px #a4a4e3;
    }
    .navigation a {
        display: block;
        padding: .5em;
        margin: -.35em 0;
        color: #000;
        text-decoration: none;
    }
    .navigation li:first-child { border-left: none; }
    .navigation li:last-child { border-right: none; }
    

    A third way to do this, also extending the clickable area to the borders as well would be to use pseudo-elements on the links to get the lateral borders.

    demo

    CSS:

    .navigation { margin-top: 7em; list-style: none; }
    .navigation li {
        float: left;
        background: linear-gradient(#fafafa, #e5e5e5);
    }
    .navigation a {
        display: block;
        position: relative;
        padding: .85em;
        border-top: solid 2px #e4e4e3;
        border-bottom: solid 3px #94a10f;
        color: #000;
        text-decoration: none;
    }
    .navigation a:before {
        position: absolute;
        top: .35em; bottom: .35em; left: 0;
        border-right: solid 1px #fff;
        border-left: solid 1px #a4a4e3;
        content: '';
    }
    .navigation li:first-child a:before { border: none; }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to design a navigation bar like the one seen above? It
I've been given a design to build that uses a tabbed navigation structure, which
Storyboards are new features in xcode 4.2 which simplify navigation design. I assume new
I'm switching some code over to the FragmentTabsPager design model, which does a nice
My navigation panel currently has the following attributes: <div id='navpanel' style='float:left; width:300px; height:100%; overflow:hidden;
In my navigation stack, I have 2 viewcontrollers, which were pushed to the navigation
I have a navigation bar which is an unordered list with tabs as list
I have a navigation bar that tells the user which page is selected by
I want to embed a ShareThis/AddThis button on my site but the site's navigation
I can´t figure out how to correctly design the pushed viewcontrollers navigation back item

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.