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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:42:17+00:00 2026-05-26T15:42:17+00:00

I have a tabbed interface (with button like tabs), and my problem is that

  • 0

I have a tabbed interface (with button like tabs), and my problem is that they stack on top each other:enter image description here

very rough sketch BTW. Here is the css for the tabs:

ul.tabs {
    margin: 0;
    padding: 0;
    float: left;
    list-style: none;
    height: 50px; /*--Set height of tabs--*/
    border-radius:2px;
    width: 100%;
}
ul.tabs li {
    float: left;
    margin: 0;
    padding: 0;
    height: 32px; /*--Subtract 1px from the height of the unordered list--*/
    line-height: 31px; /*--Vertically aligns the text within the tab--*/
    margin-bottom: -1px; /*--Pull the list item down 1px--*/
    overflow: hidden;
    position: relative;
    background: #FFFFFF;
    border-radius: 5px;
    margin-right:100px;
    opacity: .8;
}
ul.tabs li a {
    text-decoration: none;
    color: #000;
    display: inline;
    padding: 0 20px;
    border-radius: 5px;
    outline: none;
}
ul.tabs li a:hover {
    background: #ccc;
}
html ul.tabs li.active, html ul.tabs li.active a:hover  {
    border-radius: 5px;
    color: #000000;
}
.tab_container {
    border-radius: 5px;
    overflow: hidden;
    clear: both;
    float: left; width: 100%;
    background: #FFFFFF;
    opacity: .8;
    max-width:800px;
}

and the html:

<ul class="tabs">
            <li><a href="#tab4"><img src = "images/badge.png"></a></li>
            <li><a href="#tab1"><img src = "images/scroll.png"></a></li>
            <li><a href="#tab2"><img src = "images/friends.png"></a></li>
            <li><a href="#tab3"><img src = "images/compass.png"></a></li>
            <li><a href="#tab5"><img src = "images/profile.gif"></a></li>
        </ul>
  • 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-26T15:42:18+00:00Added an answer on May 26, 2026 at 3:42 pm

    At first it took me a while to understand what your problem was. So if I get it correctly, it looks like the code is fine, until you try and shrink the browser window – the the tabs line up on top of each other.

    To solve this, I specified a max-width and, most importantly, a min-width for the ul element (you can also just specify a width, like width : 900px; ). I also made sure to stick the ul in a containing div, and specify that div in the css.
    The final css worked like this:

    div.contain {
    }
    
    ul.tabs {
        margin: 0;
        padding: 0;
        float: left;
        list-style: none;
        height: 50px; /*--Set height of tabs--*/
        border-radius:2px;
        max-width:1000px;
        min-width: 900px;
    }
    

    And the html looked like:

    <div class = "contain">
        <ul class="tabs">
            <li><a href="#">1</a></li>
            <li><a href="#">2</a></li>
            <li><a href="#">3</a></li>
            <li><a href="#">4</a></li>
            <li><a href="#">5</a></li>
        </ul>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Alright, so I have an application that has a tabbed interface. What I would
I have web application in that i am using tabbed interface control in this
I have a asp.net(c#) web application in that i am using Tabbed interface to
I'm trying to create something that would have the looks of a tabbed interface
OK, so I have a tabbed interface which adds tabs dynamically once a link
I have a working tabbed interface right now, but the tabs are declared in
This is my tabbed interface, I have a jsfiddle here . <div class=tabs> <!--
I have a tabbed panel created using the jquery ui tabs and where each
I'm trying to create something like a MDI tabbed Interface so I have a
I have a page with a tabbed interface. Each tab has a unique id.

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.