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"}>



<{$block.title}>
<{$block.content}>



<{else}>


<{$block.title}>
<{$block.content}>


<{/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

280 user(s) are online (151 user(s) are browsing Support Forums)


Members: 0


Guests: 280


more...

Donat-O-Meter

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

Latest GitHub Commits