35
Here is what I've done in my theme and it seems to work:
<div class="hdr<{$block.id}>"><{$block.title}></div>
<div class="con<{$block.id}>"><{$block.content}></div>
I would love to hear from anyone and everyone if there is any reason I shouldn't refer directly to $block.id.
In my system, user menu block is ID=4, so the html that's generated by this is as follows:
<div class="hdr4">User Menu</div>
<div class="con4"><table cellspacing="0" class="usermenu" >
I set up style sheets with:
td#leftcolumn div.hdr4 { background-color: #99ff33;}
td#leftcolumn div.con4 { background-color: #99ff33;}
Soooo --- please, please, please -- if you know if a reason that $block.id would change, please let me know!
Thanks --
Monique.