1
bouncy
Block Backgorund Colour
  • 2005/5/21 11:50

  • bouncy

  • Just popping in

  • Posts: 16

  • Since: 2005/5/20


I have installed xoop and i am using the default theme which is fine until i learn how to change themes but what i would like to know is can i alter the colour of a particular block background? as it stands mine is white but i need to have a Green background, is this possible ?

2
mickbriz
Re: Block Backgorund Colour
  • 2005/5/21 21:32

  • mickbriz

  • Not too shy to talk

  • Posts: 114

  • Since: 2005/3/26


Yes change the blocks in the style sheet, style.css

3
ladon
Re: Block Backgorund Colour
  • 2005/5/21 22:24

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


Do you want to change the bg of one block, or all blocks?

If it's all, take a look at mthe stylesheet (the .css file in the theme dir) and look up the class responsible for the block style. If it's just for one block, you could add a class/id to a td or div in the template of that particular block. add that class/id to your .css and input the style you want the block to have, in this case the background.

4
Peekay
Re: Block Backgorund Colour
  • 2005/6/28 10:38

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


If you want to change the background of a custom block, you can put the contents in a DIV and use inline CSS to change the background colour (make sure the block type is set to HTML). E.g.
<div style="background-color: #ffeedd">
<
p>Block content</p>
</
div>


I guess you could edit a module's block template(s)in the same way if you wanted different colours for different modules, instead of having the colour set by the theme.
A thread is for life. Not just for Christmas.

Login

Who's Online

138 user(s) are online (98 user(s) are browsing Support Forums)


Members: 0


Guests: 138


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