0

How to enable horizontal scrolling on jQuery tabs within a specific width on a single line.

By default, jQuery UI plugin moves the last tab on next line.

So, I've been using a workaround to increase the width by a bit by setting the css style as below,

#tabs_div .scroller {
  overflow: auto;
}
#tabs_div ul { 
  width: 1100px; 
}

And tabs are set as below,

<div id='tabs_outer_div' class="tabs">
  <div id='tabs_div' class="scroller" style='display:none;width:100%'>
   <ul>....
 </div>
</div>

Edited to include jsfiddle, here the tabs are shown in multiple rows. How to set them in one single row (line). - http://jsfiddle.net/karthikn_jay/pdnr0op9/

1
  • Can you share a Live fiddle..! it helps us see your work and shoot the issue easily Commented Jun 11, 2015 at 9:30

1 Answer 1

3

Just add Custom style in your style sheet to .ui-tabs .ui-tabs-nav and .ui-tabs .ui-tabs-nav li if need add parent level unique selector

http://jsfiddle.net/pdnr0op9/3/ like this

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.