So I was working on some intense CSS stuff, and came across an issue where I couldn't modify certain CSS elements, and finally I realized it's because the block.tpl.php for PHPtemplate has spaces in the CLASS and ID names.

The new default block.tpl.php should be as follows:


<div class="<?php print "block block-$block->module" ?> " id="<?php print "block-$block->module-$block->delta"; ?> ">
  <h2> <?php print $block->subject ?></h2>
  <div class="content"><?php print $block->content ?></div>
</div>

Comments

morbus iff’s picture

Spaces in the class and ID attributes is perfectly fine. class="even monkey" just means that the element should apply both the "even" and "monkey" CSS styles. That's perfectly legal.

morbus iff’s picture

Status: Needs review » Closed (works as designed)
DaveNotik’s picture

Status: Closed (works as designed) » Closed (fixed)

See http://drupal.org/node/45536 for resolution of this duplicate issue. Morbus and I discussed and clarified the real issue.