[jQuery] adding html to tab labels

[jQuery] adding html to tab labels


i'm trying to add some html to the label area of tabs in order to add
an icon and also some divs that i can access at later times to modify
easily.
any suggestions on how to do this?
at the moment i'm doing something like this
$("#tabs").tabs('add' , '#' + tag, '<div><div id="' + tag + '_tabIcon"
style="float: left;"><img src="images/icons/group_edit.png" width="16"
height="16" border="0" /></div><div id="' + tag + '_tabLabel"
style="float: right;">' + nick + '</div></div>');
it does what i want it to... but it comes out quite weird. green
lines, offsets, all kinds of gross stuff.
thanks heaps