How to place an item exact center in toolbar

Hi,
Is there any way to place an item exact center of the toolbar.
Coming to my toolbar , i have 3 items at left and 2 items at right side of the toolbar and i have to place an image item at center of the toolbar.

Please tell me how can i do this.
Thanks in advance.

item1 | item2 | item3 IMAGE item4|item5

Naresh Adla.

Hi
Try the next:
toolbar.addText(“imageItem”, 3, “”);

Thanks for your replay Mr.Darya,

if i do add an item as u said, it just will add an image as a 4th item in the toolbar.
But i need that the image should be always displayed in the middle of the toolbar, irrespective of rest of the items hidden or showed.

item1 | item2 | item3 -------------------------IMAGE--------------------------------item4 | Logout

If i hide the item no. 3 then also it should be displayed in the middle only.

item1 | item2 | ---------------------------------IMAGE--------------------------------item4 | Logout

But not like below

item1 | item2 | -------------------------IMAGE--------------------------------item4 | Logout.

IMAGE should not come to let.

Naresh Adla.

What kind of image it will be? With fixed size? Are you going ro resize the container of this toolbar (you need to consider window’s resizing)?

Hi Darya,

1)It is .png image.
2)Of Fixed size.
3)Just based on some requirement i will hide some items in toolbar thats it .
Still i want to see the image in center of the toolbar.

So, in this case i’ve provided you an approach. There is no another way. You can only paste there a div with image inside. Unfortunatelly it will be a text item.