| Re: HOW-TO: Have different styles for each block individually and control title visibility through css |
| by novlang1984 on 2011/9/9 12:38:30 Thanks :) For those who want more, take a look to Morphogenesis theme and especially blocks tpl Quote: <div id="xo-block-<{$block.module}>-<{$block.id}>" class="xo-block <{$block.module}>"> nb : "<{$block.module}>-" is not very useful in my opinion |
| HOW-TO: Have different styles for each block individually and control title visibility through css |
| by kerkyra on 2011/9/9 12:18:37 I recently found an easy way to control how my blocks show individually. here it is.... Quote:
Every block has an id once saved, so in my rightblocks.html template, I add a class to my title div and one class to my content div (could also be an id instead of a second class, whatever suites you) In the example above the title has the block<{$block.id}> class and the content area has the content<{$block.id}> class So now if we examine the webpage's html we can see the actual class names of every block, and write the css for each one of them individually. :) while maintaining the basic characteristics of the primary classes. I hope it helps someone. |