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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:54:09+00:00 2026-06-09T09:54:09+00:00

Hi I am using the jquery UI tabbed widget and I am trying to

  • 0

Hi I am using the jquery UI tabbed widget and I am trying to create a horizontal scroll bar for the tabs.I have created the code to add new tabs on click when the tabs total width is bigger then the containers.The problem is that the tabs move to the second line witch is not what I want.I want them all to stay on the same line and later I will add 2 buttons to scroll from left to right.Here is the code I created:

jsfiddle

As you can see from what I posted the tabs move on the second line even if I added on the container overflow:scroll.

  • 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-09T09:54:12+00:00Added an answer on June 9, 2026 at 9:54 am

    To get you started, checkout this fiddle.

    Here’s the additional JS:

    (function() {
        var $tabsCont = $('#tabs_container'),
            $tabs = $tabsCont.children(),
            widthOffset = 10; // The width calculated below is a bit too large...
    
        $tabsCont.wrap('<div class="tab_cont_wrapper"></div>');
        $tabsCont.width($tabs.length * $tabs.first().width() - widthOffset);
        $tabsCont.height($tabs.first().height());
    })();​
    

    I’ll leave it to you to find a better tabs width calculation.

    The CSS:

    #tabs_container {overflow:hidden !important;}
    .tab_cont_wrapper {overflow:auto;}
    

    ​

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

Sidebar

Related Questions

I have a tabbed panel created using the jquery ui tabs and where each
I am using jquery tabs to load content from a remote file. I have
I have created a tabbed display with html/css. I simply want to use jQuery
So, I created a tabbed interface using java script, jQuery, and CSS in which
I have adapted a jQuery tabbed interface tutorial to create an interface for viewing
I am trying to control HTML5 videos using JQuery. I have two clips in
I have a tabbed jquery slider that I'm using to display elements of an
I am using jQuery UI Tabs for a tabbed interface with panes that is
I have some html/jQuery that I am using to implement some tabbed navigation. When
I am using jQuery Tools to create a tabbed box that gets content via

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.