css styling in views

Theme: Bartik.
I want to css style a views gallery.
.views-gallery class I put in views.css:
.views-gallery {
background: red;
But that does not matter.
In which .css file should the class be written to be readable by views?
What am I doing wrong. Anyone who can help?
/ willy


I think I’ve solved the problem.
Caches must be cleaned before css changes are affected.
Is it possible to prevent the page caches (when I edit the page)?

Drupal version: 

Source: https://www.drupal.org/taxonomy/term/22/feed