Sent Via E-mail
I would like to have one static background.
My testing was done only with the CSS code in the template.html file.
This is the first one I tried:
<style type="text/css">
body {
background:#120a8f;
background-image: url(typhoon.jpg); position: fixed; width:
100%;
height:100%; top:0; left:0;
text-align:center;
font-size:15px;
font-family:Verdana, Helvetica, sans-serif;
color:#fff;
}
This is a variation I tried based on an idea I found for another
situation.
The image div would have the 'bg' identifier:
<style type="text/css">
#bg {position: fixed; width: 100%; height:100%; top:0; left:0;
body {
background:#120a8f;
text-align:center;
font-size:15px;
font-family:Verdana, Helvetica, sans-serif;
color:#fff;
}
To see where I'm using it, go to
http://www.rao-osan.com/osan-info/onbase/slide-shows/phpslideshow.php?direct
ory=typhoon/kompasu&menu1. Slide 48 has the typhoon image I'd like
to
have as background.
Jater
Jater,
You need to make sure you use the correct path to your background
image I had no problem using a background image with.
url("typhoon/kompasu/photos/47.jpg") repeat fixed 0 0 #120A8F
You need to make sure you use the standard background properties found
here:
http://www.w3schools.com/css/pr_background.asp
In you code above width 100% is not valid for the background property.
If you would like to have your background be stretched to fill the
screen that's a little more tricky. See this article on the matter:
http://css-tricks.com/perfect-full-page-background-image/
Hope this helps to get you on the right track.