This is my code to load a CSS file in the wordpress backend:
function customAdminStyles() {
$url = get_bloginfo('template_url') . '/wp-admin.css';
echo '<!-- custom admin css -->
<link rel="stylesheet" type="text/css" href="' . $url . '" />
<!-- /end custom adming css -->';
}
add_action('admin_head', 'customAdminStyles');
The problem is that the styles are overwritten by original wordpress CSS declarations, so i have to put a "!important" behind every declaration - i don't like that. Any idea how to load it at last? I don't want to use a plugin.