Closed (fixed)
Project:
Block Class
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Sep 2009 at 16:46 UTC
Updated:
14 Feb 2010 at 21:20 UTC
Hi, I'm struggling to get any css applied to my blocks.
Could somebody please sense check the syntax for me - an I missing something?
Thanks.
Stuart
<?php
// $Id: block.tpl.php,v 1.2 2009/04/03 22:18:06 jrglasgow Exp $
?>
<div class="block block-<?php print $block->module; ?>" id="block-<?php print $block->module; ?>-<?php print $block->delta; ?> <?php print block_class($block); ?>">
<?php if ($block->subject) { ?><h2 class="title"><?php print $block->subject; ?></h2><?php } ?>
<?php if ($block->content) { ?><div class="content"><?php print $block->content; ?></div><?php } ?>
</div>
Comments
Comment #1
todd nienkerk commentedYou have mistakenly added the Block Class output to the
div'sidattribute instead ofclass. The first line should read:Comment #2
todd nienkerk commented