I'm looking at using the Yahoo! UI library for my CSS, using the reset, fonts and grids CSS files. However, using drupal_add_css in my template.php file they appear at the bottom of the list of CSS files loaded.

Is there a way to:

    Load up a CSS file higher in the source order?
    Disable CSS files loaded by Drupal by default?

Thanks for any help.

Comments

WeRockYourWeb.com’s picture

You can override as well as remove the default css. The preferred method is to override it, as updates to Drupal may contain important CSS changes. I gathered all the info I could find and wrote up an article: Overriding Drupal CSS.

Cheers,
Alex
----------
Contract Web Development

tanepiper’s picture

Thanks very much

sepeck’s picture

My site is based off the Yahoo GRID CSS and here's the article. There's a number of ways to implement them.

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

mod_phx’s picture

i'm currently re-doing my company's corporate site using drupal + yahoo UI library.
steven's article is a very good start, and it has a perfect method for linking to your stylesheets.

also look at the phptemlate raw layouts at http://drupal.org/node/70362/release, they give you a good idea of where to lay out all the drupal elements.

i'm also going to use the yahoo menu library for our site, but due to time constraints i'm going to go with Nice Menus for now.