PDA

View Full Version : Using background images in styles


gillyworld
24th of April 2004 (Sat), 11:01
Has anyone modified any styles to make them use background images rather than a plain colour? If so could you tell us how its done

Thanks

Alan

okapi
26th of April 2004 (Mon), 03:43
hi alan,

in the styles folder open the php file of the style you want to modify, e.g. original.php.
around line 355 you will find the body stylesheet:

BODY {
background: #" . $s_back_color . ";
color: #" . $s_font_color . ";
margin-left : 0px;
margin-top : 0px;
margin-right : 0px;
margin-bottom : 0px;
font-family: " . $s_font_family_p . ";
background-image : url(graphs/yourbackgroundimage.gif);
background-color : #" . $s_back_color . ";
}
.rover {background: #" . $roverback . "; }
.rover A {color: #" . $roverlinkcolor . "; }


here you can see the syntax for the style definition of the background-image, which is empty by default.
just put your background image into the graphs folder.

i hope this helps.

cheers
michael