How to use your own css file

Here is another small tip for designing drupal website. When you develop sites in drupal you be definitely need to modify the existing css file of the theme you are using. my suggestion is don't mess much with the original theme. Keep it as it is or change it only when you really have to.

Just create your own css file, lets say we call it MyOwn.css and write your code in it. Then edit the .info file of the theme you are using and add the following line in it.

stylesheets[all][] = style.css
stylesheets[all][] = ribbon.css
stylesheets[all][] = aggregator.css
stylesheets[all][] = local.css
stylesheets[all][] = MyOwn.css

After doing that clear the cache check if you new css work or not!!

Drupal rocks!!

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • E-Mail addresses are hidden with reCAPTCHA Mailhide.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions. Please don't mind guys!