2

I'm using jQuery UI to do some tabs but I wan't one of the tab to be to the right so I figured I'll use jQuery to change the CSS to float:right but that doesn't help.

Do anyone know a better solution or how I can edit the CSS of one tab?

2
  • Could you show some code? Modifying one of the demos on jQueryUI's site, I was able to make a tab float right simply by adding an inline style="float:right" which should be the same thing that .css() gives you. Commented Jun 24, 2010 at 19:00
  • Here's a working example for you: jsfiddle.net/FxXnB Commented Jun 24, 2010 at 19:07

1 Answer 1

1

Adding float:right worked for me. Are you adding it to the right element?

$("ul.ui-tabs-nav li.ui-state-default:last").css("float", "right");
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks, probably dident do that but the code you provided worked, thanks again.

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.