I've been using framework for a months on Drupal 6, but now on Drupal 7 and Framework 3.6 I have problem with styling the full node. The only way I can see to style it is by using classes .main or .content, however these classes also style the front page and make the teasers appear as one whole and not seperated. So how can I style just the full node with CSS without effecting the teasers on the front page?

Previously I've been using Framework 1.5 and never had a problem with styling.

Comments

satvision83’s picture

Status: Active » Closed (fixed)

I followed this post http://drupal.org/node/1311412#comment-5952846 and its working great. :)

I'm posting the fix here from "nevets"and I hope can help someone.

That is a "feature" of the theme you are using. In node.tpl.php, it starts with

<?php if (!$page): ?>
  <article id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
<?php endif; ?>

Many/most themes output that div all the time, framework does not.
You could copy the node.tpl.php to your subtheme and change those lines to
<article id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>

Note if you do this, you need to change

<?php if (!$page): ?>
  </article> <!-- /.node -->
<?php endif; ?>

at the end to
</article> <!-- /.node -->

satvision83’s picture

Issue summary: View changes

updating info