Overriding core stylesheets
By default Drupal comes installed with some things styled. While this is handy there are times when you are working on a theme that you want to change these settings for your design.
In this chapter there are some of the most common overrides people run into.
(Please fill this in as much as possible.)

File Based Replacement
This snippet will allow you to override individual module's themes by putting a file in the proper location. It should be a path like "(theme path)/modules/(module_name)/(module's_css_filename).css"
For example, to override "system.css", create a file like "(theme_path)/modules/system/system.css"
Themers may find it useful to just copy the original module's .css file and paste it into the theme directory, then make modifications. By having the replacement in the theme directory, modules can be upgraded without worrying about the themes being replaced.
It reduced the size of my theme by 25% because I was constantly overriding styles.
Just insert this in your page.tpl.php template somewhere above your
<?php print $styles; ?>(near the top).<?php //custom css mod to override individual module's css$css = drupal_add_css();
// we build an array $new_css so that the original include order is kept.
// this is important as the include order of css files makes sure we can override
// core and module css style rules with theme css style rules
// we will replace certain files in $new_css with the ones we want to use instead.
$new_css = array();
foreach($css as $media => $types) {
foreach($types as $type => $files) {
foreach($files as $file => $preprocess) {
// determine if I have a theme specific replacement for this file
// and if I do put that one in the $new_css array instead of the original
if (file_exists($_SERVER['DOCUMENT_ROOT'] . base_path() . path_to_theme() . "/" . $file)) {
$new_file = path_to_theme() . "/" . $file;
$new_css[$media][$type][$new_file] = $preprocess;
}
// I don't have a replacement so I will keep the original
else {
$new_css[$media][$type][$file] = $preprocess;
}
}
}
}
$styles = drupal_get_css($new_css); ?>
______________
I run an open source inventing website - NeoMenlo.org.