Insert icons to tabbar

Is there a way to insert an icon next to the name of a tab in tabbar? :unamused: :unamused: :unamused:

Decision is following:

tabbar.addTab("tab3","<img src='path_to_the_icon'>","100px");

How to increase the tab depth ? Because tab depth of 40px is not enough for the image size. How can I increase that?

We don’t recommend you increase over the 40 px.
tabbar = new dhtmlXTabBar(“a_tabbar”, “top”, 40);
BUT you can redraw tabbar tab-background images or don’t shom them at all.
Pay attention, that not all the skins could be increased at all (i.e.skyblue doesn’t) and the one wich can be up to 40 is ‘default’.

Then how to hide the tab background image? For my needs 40px is not enough.

There are many different CSS settings

.dhx_tab_element div { background-image: none !important; }

i have reduce the image width and height to 40px. But it still out of the tab. What is this 40? Is it in px?

It is CSS.
I need to ask: do you need icons to each tab, or you need to use one main like for logo? May be i can offer you one more interesting solution, if you need one common image.