Community & Support

adding a stylesheet to info file

Hello,

Just wondering if there is a recommended way of adding a stylesheet to your theme?

In mytheme.info file I have:

stylesheets[all][] = style.css

Is this the best place to add the new stylesheet? And if so what is the correct syntax?

Thanks

Comments

Yes, and exactly like that

Yes, and exactly like that unless iyou specifically want it for a specific medium.

works at bekandloz | plays at technonaturalist

As far as i know 2 standart

As far as i know 2 standart ways to add stylesheets are throught .info file and drupal_add_css() function.
Adding with .info file and syntax Adding style sheets

$|#|@

Ah

Sorry for confusion:

I already have a style.css and want to add another one, so what is the syntax for this in the info file?

Thanks..

If it's standart stylesheel

If it's standart stylesheel for all displays then copy/paste line you already have in .info file.

stylesheets[all][] = yourstylesheet.css
stylesheets[all][] = yourstylesheet2.css

simple as that.

$|#|@

And don't forget that they'll

And don't forget that they'll render in order so anything in subsequent stylesheets will overwrite anything of the same name in previous ones.

works at bekandloz | plays at technonaturalist

Thank you guys, for

Thank you guys, for confirming my "suspicions".. ;-)