background for posts

Everything related to MBoard - PHP message board
Locked
ababneh
Posts: 2
Joined: Sun May 21, 2006 1:14 am

background for posts

Post by ababneh »

Ive added a background image to the home page of msg board and was ok. but when I open posted msgs (for example msg/1.html), that doesnt show up (only white background), I was wondering what file should be modified to enable image background for posted msgs. Thanks!
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Hello ababneh,

To add a background-image to messages you can do this best by changing the style.css file.

Add the following as the first line of your style.css file.

Code: Select all

body {   
   background-image: url(images/backgroundimage.gif);
   background-color: white;
   background-attachment: fixed;
   background-repeat: no-repeat;
   background-position: center center;
}
Here a summary of the possible values:
background-image: url(images/backgroundimage.gif); /* the url to your background image */
background-color: white; /* the background color of the page where no image is showm */
background-attachment: fixed; /* fixed = not scroll with page; scroll = scroll with page */
background-repeat: no-repeat; /* no-repeat = show background image ones; repeat-x; repeat-y; repeat */
background-position: center center; /* where should the background image be placed on screen; top left; top center; top right; center left; center center; center right; bottom left; bottom center; bottom right; x-% y-%; x-pos y-pos */

For more explanation visit the following link
http://www.w3schools.com/css/css_background.asp

Greetings,
Henrie
ababneh
Posts: 2
Joined: Sun May 21, 2006 1:14 am

Post by ababneh »

It has worked perfectly as described. Thanks alot!
Locked