View Discrepancy

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

My feed item(s) view, per the preview function:
http://j.gravelle.us/Portals/0/OP_ViewPreview.png

...versus the actual result as produced in production:
http://j.gravelle.us/Portals/0/OP_ViewResult.png

It doesn't appear the CSS is obfuscating the layout. Clues?

Thanks,

-jjg

Comments

Definitely picking up CSS

ksweet's picture

Definitely picking up CSS artifacts from the OP theme. Override what you can in your sub theme and use !important if necessary.

@jjg, preview is run in the

irakli's picture

@jjg,

preview is run in the Rubik theme (default admin theme in OpenPublish) so it may not be used for debugging look and feel. Preview in Views is just to debug content. You should test the look and feel on the actual page where that view is rendered.

@ksweet,

granted, sometimes you can not avoid !important, but in general I like to use more specific css definition (e.g.: ".enclosingdiv .mydiv" instead of ".div") and override priority with that rather than use !important, because abuse of !important usage can create a mess of its own.

.............................................
http://twitter.com/inadarei

OpenPublish

Group organizers

Group categories

Group notifications

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