Creating a new Drupal theme is fairly simple, but its really annoying when the overly ambitious CSS selectors from "system.css", "node.css", "defaults.css" and "user.css" start messing up your layout.
To get rid of them, override phptemplate_preprocess_page() in your theme "template.php" file and append:
01.
function
phptemplate_preprocess_page(&
$vars
) {
02.
// Remove the stupid Drupal css stuff from being added
03.
unset(
$vars
[
'css'
][
'all'
][
'module'
][
'modules/node/node.css'
]);
04.
05.
unset(
$vars
[
'css'
][
'all'
][
'module'
][
'modules/system/defaults.css'
]);
06.
unset(
$vars
[
'css'
][
'all'
][
'module'
][
'modules/system/system.css'
]);
07.
unset(
$vars
[
'css'
][
'all'
][
'module'
][
'modules/system/system-menus.css'
]);
08.
unset(
$vars
[
'css'
][
'all'
][
'module'
][
'modules/user/user.css'
]);
09.
10.
$vars
[
'styles'
] = drupal_get_css(
$vars
[
'css'
]);
11.
}
This code was ported from John Forsythe's Drupal 5 post.
[ Source ]