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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T18:28:59+00:00 2026-05-14T18:28:59+00:00

I want to create a very simple tab style that looks like this: _____

  • 0

I want to create a very simple tab style that looks like this:

  _____   _____   _____
_|_____|_|     |_|_____|______________

So basically there is a horizontal border on the bounding box that breaks for the active tab. I’m using a basic list, with the following CSS, but the outer border always appears over the individual tabs. I’ve tried various positioning and z-index as well to no avail.

ul.tabHolder {
    overflow: hidden;
    clear: both;
    margin: 1em 0;
    padding: 0;
    border-bottom: 1px solid #666;
}
ul.tabHolder li {
    list-style: none;
    float: left;
    margin: 0 3px -1px; /* -1 margin to move tab down 1px */
    padding: 3px 8px;
    background-color: #444;
    border: 1px solid #666;
    font-size: 15px;
}
ul.tabHolder li.active {
    background-color: #944;
    border-bottom: 1px solid #944;
}
  • 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-14T18:29:00+00:00Added an answer on May 14, 2026 at 6:29 pm

    Try this solution by Eric Meyer.

    Content below copied from the site to ensure the answer is still valid if the site closes, changes or breaks.

    #navlist {
      padding: 3px 0;
      margin-left: 0;
      border-bottom: 1px solid #778;
      font: bold 12px Verdana, sans-serif;
    }
    
    #navlist li {
      list-style: none;
      margin: 0;
      display: inline;
    }
    
    #navlist li a {
      padding: 3px 0.5em;
      margin-left: 3px;
      border: 1px solid #778;
      border-bottom: none;
      background: #DDE;
      text-decoration: none;
    }
    
    #navlist li a:link {
      color: #448;
    }
    
    #navlist li a:visited {
      color: #667;
    }
    
    #navlist li a:hover {
      color: #000;
      background: #AAE;
      border-color: #227;
    }
    
    #navlist li a#current {
      background: white;
      border-bottom: 1px solid white;
    }
    <div id="navcontainer">
      <ul id="navlist">
        <li id="active"><a href="#" id="current">Item one</a></li>
        <li><a href="#">Item two</a></li>
        <li><a href="#">Item three</a></li>
        <li><a href="#">Item four</a></li>
        <li><a href="#">Item five</a></li>
      </ul>
    </div>

    ABOUT THE CODE
    Some lists within the Listamatic site had to be modified so that they could work on Listamatic’s simple list model. When in doubt, use the external resource first, or at least compare both models to see which one suits your needs.

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

Sidebar

Related Questions

I want to create a very simple piece of software in C# .NET that
I'd like to create a very simple android activity that takes a file path
I have the following issue whith this very simple task. I want to create
I'd like to ask if is there a way to create a very simple
I want to create a layout that has 6 TextViews on the very top,
I want to create a set of classes that are very similar and can
This is a very newbie question. I want to know how to create a
I want to create a very simple experimental programming language. What are some resources
I want to create a very simple search partial. It has a text box,
I want to create a very simple python web app. I don't need Django

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.