- With the great D6 power of theme.info files, it's possible to overwrite core module's css files by simply naming them like "stylesheets[all][] = system-menus.css" in the stylesheets section.

- It's common practice in web-development these days to have a "reset.css" file included at the very first position. This file "resets" all native browser behavior like margins etc.

- Unfortunately there's no defined first css file to overwrite in Drupal (see #191315: Order of CSS files and #227892: Order of CSS files for workarounds and problems).

So, here's my petition:

Add the inclusion of a reset.css file at the very first position in the stylesheets section of HEAD. Allow (as it is now) themers to overwrite it by the above mentioned mechanism.

Thanks for for your attention.

Sorry, couldn't find a project to assign this issue to. Therefore wrote a forum topic...

Comments

prestonso’s picture

I don't see the need to include a reset.css file when the cancellation of native CSS can be just as easily done in the style.css file. Really, the only thing that needs to be done is changing the body to have a margin and padding of zero so that everything inherits that. If there really is a dire need, you can just import the reset.css file into style.css using @import.
___________________

Preston So
Web/Print Designer
Monarch Digital, Colorado Springs
My non-updated non-Drupal site

___________________

Preston So

horuskol’s picture

Putting a reset styles in the style.css file will erase any of the Drupal defaults - which may be something that you don't want to do.

Putting the reset styles in a separate stylesheet before the Drupal defaults ensures that you have a nice base to work from and have to do less work...

rainer_f’s picture

There are way more styles to "reset" than paddings and margins! Check out i.e. the reset.css of eric meyer (http://meyerweb.com/eric/tools/css/reset/) or yahoo's yui project. And if you reset the style after drupal's core css's were loaded (your proposed import solution) you end up veeery unstyled.

Anonymous’s picture

I think this is a great idea.

For module developers, it means that we can rely on all themes having predictable margins and paddings on our elements. Right now if we want to have all margins and padding set to 0 on HTML output by our modules, we have to do it ourselves. For themes which employ a reset CSS, this is redundant. For themes which don't, it's essential.