Breathe Makes Smoke - 05 September 2008 10:43 AM
Hei!
I’m working on my own Control Panel Theme but for any reason the tabs in the top naviagion are always centered and 100% wide.
Well, they’re inside a table so that’s what happens.
Breathe Makes Smoke - 05 September 2008 10:43 AM
I’d rather have to have tabs that are left-aligned and only as wide as needed.
I haven’t found any information about this and would be happy if someone could help me. 
Thanks a lot!
Maurus
Text-alignment can be changed by setting text-align to left or right for .cpNavOff, .cpNavLocked in the CSS file that’s inside themes/cp_themes/default/default.css
Unfortunately, the width is specified in the markup itself.
Around line 858 in system/cp/cp.display.php sets the width:
$r .= "<td class='navCell' width='".$width."%' ".$js.">";
Not sure it’s worth hacking one of the core files to get rid of it… I for one hope that in EE2.0 they lose all presentational data in the HTML, it would sure make the CP easier to skin.