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

  • Home
  • SEARCH
  • 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 6901451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:40:31+00:00 2026-05-27T07:40:31+00:00

I would like to use jQuery UI tabs but I need the tabs aligned

  • 0

I would like to use jQuery UI tabs but I need the tabs aligned right … That’s “easy” since I can modify the tabs container class and extend it.

But the thing is I want to add a “title” on the left, as shown in this screenshot:
http://cl.ly/400D0E3z0f272h1B3x3R

How can I do it in a clean way ?

(A dirty way could be to prepend/append a div to the tabs tag, adding the DOM on the fly … I’m looking a cleaner way 🙂

Thank you in advance

  • 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-27T07:40:31+00:00Added an answer on May 27, 2026 at 7:40 am

    First there is nothing dirty adding elements to the dom on the fly 🙂

    Secondly, you could simply add an element in the markup, for instance a <h3> (let’s be semantic (and assume you got other titles before)):

    <div id="tabs">
        <h3 class="ui-tab-title">My Title</h3>
        <ul>
            <li><a href="#tabs-1">Nunc tincidunt</a></li>
            <li><a href="#tabs-2">Proin dolor</a></li>
            <li><a href="#tabs-3">Aenean lacinia</a></li>
        </ul>
        <div id="tabs-1">
        ...
    </div>
    

    and position it with css:

    /* float tab buttons to right */
    .ui-tabs .ui-tabs-nav li { float: right !important; }
    
    /* position:relative on container will make the title position:absolute relative to the container */
    #tabs { position: relative; }
    
    /* absolute position the title */
    .ui-tab-title { position: absolute; left: 20px; top: 15px; }
    

    Here’s a jsfiddle to illustrate


    Edit:

    As you pointed out, floating right the <li> inverts their order.

    You could invert the order of the list items in the markup itself but this will mess up the whole logic.

    Here’s a piece of css to right align the tab button while keeping the markup and the visual order in place:

    /* align right the <ul> container */
    .ui-tabs .ui-tabs-nav { height: 2.35em; text-align: right; }
    
    /* jquery ui css floats-left the <li> so un-float them */
    .ui-tabs .ui-tabs-nav li { display: inline-block; float: none; }
    

    I’ve changed the fiddle accordingly.

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

Sidebar

Related Questions

I would like to use the JQuery UI tabs in my Django app but
I would like to know how can I use jQuery to select multiple items
I would like to know if I can use the following JQuery function on
I would like to use a component that exposes the datasource property, but instead
I would like to use my existing Jquery UI tabs to shoot my users
i would like to use jquery ui selectmenu from felixnagel. it works but i
I would like to .get a page and then use jquery to find elements
I am relatively new to using jQuery and would like to use the load
I would like to use a language that I am familiar with - Java,
I need jQuery tabs that will also work with a URL Example I have

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.