Victor Bjelkholm
Victor Bjelkholm

Reputation: 2216

Changing CSS of a tab in jQuery UI

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?

Upvotes: 2

Views: 399

Answers (1)

Shaun Humphries
Shaun Humphries

Reputation: 1035

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");

Upvotes: 1

Related Questions