Views CSS

Events happening in the community are now at Drupal community events on www.drupal.org.
Dave R.'s picture

Can anyone point me toward a resource or explain why, for example, my "Homepage Articles" block does not appear with the same CSS as it does on the default front page when I put it elsewhere on my site?

Am I supposed to put a div class in one of the templates, and, if so, how do you tell which one and where it goes? Looking at the views theme:information has not helped me so far, nor has reading a couple of days' worth of documentation.

Comments

Update for the code-challenged

Dave R.'s picture

For those of you playing along at home, I made a little progress, and I guess I am on the right track...I hope. Here's what I am doing. Guessing and through process of elimination, I made a views-view-field--articles--block-1--title.tpl.php file and put it in my sub-theme folder. Then I messed around with the following:

<?php print $output; ?>

By wrapping it with various stuff (most recently, I defined a class n CSS), I got something I could work with.

<span class="hed-content">
<?php print $output; ?>
</span>

Is this a bad approach, or am I doing OK here?

subscribe

shinz83's picture

subscribe

OpenPublish

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: