Closed (fixed)
Project:
Documentation
Version:
master
Component:
Developer Guide
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Jan 2006 at 21:25 UTC
Updated:
4 Mar 2007 at 18:30 UTC
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>
Hope this helps the next person! :)
--Dave
Comments
Comment #1
DaveNotik commentedUpdate: Drupal.org itself actually creates those spaces when surrounding with PHP tags... so they showed in my example above as well. Hmmm...
Comment #2
morbus iffI coulda swore I already commented on this.
In short, this is not a bug. A CSS class of "two words" does not mean that it's looking for a class called "two words" - it's actually looking for a CSS class "two", and then a CSS class "words", and then merges the two definitions together. It's a CSS feature, not a Drupal bug.
Comment #3
morbus iffFurther explanation from DaveNotik in IRC asserts that I had no idea what he was talking about.
Comment #4
morbus iffAlrighty:
Updating issue to match underlying issue.
Comment #5
add1sun commentedThis appears fixed to me. I don't see the issue anymore (or I don't get it ;)). Moving to fixed. If I'm wrong someone can reopen.
Comment #6
(not verified) commented