Hello, I just recently upgraded to Drupal 6 and Views 2. I am attempting to theme a block, and have a general idea of how to do it, however I'm not sure where to stick the css.

In Views 1 I was able to create a CSS file with the identical name as the view's .tpl.php file. So I could make a file for my block called views-view--viewname.css. This doesn't seem to work the same way now. Is that the case?

Should I stick this CSS code in the style.css? What if the block isn't used on every page and I want to optimize the CSS.

Do I have to make a call to the css file in the .tpl.php file? That seem unintuitive and a step back from Views 1.

Is there only a certain area that I can stick the CSS files within the theme's folder? Can I make a separate sub-folder called "css" and stick it in there?

Any help would be greatly appreciated. Thanks!

Comments

JustinJohnson’s picture

Is this the correct place to put this or should I be asking this in the Views project?