Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Andrew on Sep 09, 2009 06:44
open dhtmlx forum
Center Tabbar in Div

Sounds simple, but how do you set the style left=, or indeed center a Tabbar within the div it is initialised from? or when placed in a container (layout) div?

Any assistance appreciated.
Answer posted by Support on Sep 09, 2009 08:03
By "center" - do you mean center the tab with all contents , or center the tab buttons relative to tab content ?
In first case you can apply any necessary rules to the container's div, tabbar just renders self inside it, positioning is working the same as for any normal html div. 
In second case - it not possible, but you can define an offset ( tabbar.setOffset ) which is space between left border of tabbar and the first tab, so effect similar to centering can be achieved 
Answer posted by Andrew on Sep 09, 2009 17:22
Thanks Support, the second case applied. Yes, tabbar.setOffset worked well. Thanks again.