formatting tab headers

truncate long titles
fixed width
varable number of tabs depending on screen width
flow tabs up the screen to avoid overhang