Page 1 of 1
background for posts
Posted: Sun May 21, 2006 1:58 am
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!
Posted: Sun May 21, 2006 8:53 am
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
Posted: Sun May 21, 2006 7:03 pm
by ababneh
It has worked perfectly as described. Thanks alot!