I am theming a views exposed form which is a block. The views filters are displayed in a block and I am theming this using "views-exposed-form--view-name.tpl.php". I want to apply CSS to this template file.
How to do this.
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.Sign up to join this community
You could add the CSS in
<style> tags on top of your template. Most browsers will probably understand what you want, it does result in ugly HTML though.
You could also add the CSS in your main CSS file and use .view-id-viewname .div (etc.) to target elements specificaaly in that view