1
showcase17
Different BG color in 1 block
  • 2005/1/15 10:12

  • showcase17

  • Not too shy to talk

  • Posts: 190

  • Since: 2005/1/6 0


I've got a block which displays RSS-feeds (XHLD).
To make this block standout I would like it to have a different background color.

Possible?

2
jdseymour
Re: Different BG color in 1 block

Not sure if it would work. But assign a new class it the tmplate and add the class to your style css.

so it would look something like this in the template:

< div class=whatevername then your template then close the div at the end.

Then assign the whatevername class in your style.css and see if it works.

3
showcase17
Re: Different BG color in 1 block
  • 2005/1/15 23:16

  • showcase17

  • Not too shy to talk

  • Posts: 190

  • Since: 2005/1/6 0


Solved it, with help from SGSHELL (who responded on another thread)

Open your template and replace the code with this one:

<{if $block.title =="BLOCKTITLE"}><br>
<div style="background-color: #f5f5f5;">
<fieldset>
<legend class="blockTitle"><{$block.title}></legend>
<div class="blockContent"><{$block.content}></div>
</fieldset>
</div>
<{else}>
<div style="padding: 0px 5px 0px 0px;">
<fieldset>
<legend class="blockTitle"><{$block.title}></legend>
<div class="blockContent"><{$block.content}></div>
</fieldset>
</div><{/if}>

Prob you'll have to make some minor changes depending on your theme, match the blocktitle, change the background color and it should work.

Should be easy enough to change font, fontcolor... also.

Login

Who's Online

240 user(s) are online (132 user(s) are browsing Support Forums)


Members: 0


Guests: 240


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits