I’m having trouble styling tabs the way I want them to be. The tabbar is left aligned and I’m using images for labels, but the images are being cut of. Here’s my code
<styles>.tab {
margin-top: 5px;
margin-bottom: 5px;
margin-left: 2px;
}</styles>
tabbar = dhxLayout.cells("a").attachTabbar("left");
tabbar.setMargin("5");
tabbar.setSkin('dhx_web');
tabbar.setImagePath("img/");
tabbar.addTab("a1","<div class='tab'><img src='img/contacts.png'> </div>","*");
tabbar.addTab("a2","<div class='tab'><img src='img/calendar.png'> </div>","*");
tabbar.addTab("a3","<div class='tab'><img src='img/task.png'> </div>","*");
tabbar.addTab("a4","<div class='tab'><img src='img/memos.png'> </div>","*");
tabbar.addTab("a5","<div class='tab'><img src='img/journal.png'> </div>","*");
tabbar.setTabActive("a1");
In addition to not being quite what I want, this code also leads to inconsistencies between Firefox and Chrome.
Any ideas on how to fix this would be appreciated.
Thanks!