Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.6
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Sep 2009 at 20:47 UTC
Updated:
9 Jul 2010 at 20:28 UTC
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. My attempts to do this in Views 2 have been unsuccessful. Should I stick this CSS code in the style.css?
If I want to create a separate file do I have to manually create a call to an individual CSS file?
Any help would be greatly appreciated. Thanks!
Comments
Comment #1
dawehnerYes currently views does not create extra css files, but you can add one very easy.
Just create the file.
Then you have to add it to drupal. This can be done with serveral different methods
Comment #2
Jimmel commentedHi
I would like to come in here. I cannot seem to find the basics on theming individual views in the official documentation.
Here is my question.
If I have a view which is using the views-view-table--Fixtures-Results.tpl.php for the style output,
what css do i use in the style css file for this individual view.
Do I use .views-view-view--Fixtures-Results to override all the styles and then use the td, tr id's etc
as in .views-view-view--Fixtures-Results tr to add to specific parts of this view.
Or waht is the css class or div I use to style the individual view.
This may sound like a simple question but when the documentation leave out the basics then it is not that simple.
Comment #3
esmerel commentedGeneral closing of issues with no activity for 6 months