My background currently scrolls but I like the look of a fixed background, but I can't figure out how to do it.
I'm using eFiction 3.4.2
No mods
No bridges
Skin: e-zfiction by Kali
Site: httpy://slashedtodeth.com
This is what I tried in the .css file. But all it did was remove the image and give me a blank background. Any help would be appreciated.
/* Some definitions used everywhere */
BODY {
background: #CFD4E0 url('images/stripes.jpg');
background: fixed;
color: #000000;
margin: 0;
padding: 0;
text-align: center;
font-style:normal; font-variant:normal; font-weight:normal; font-size:13px; font-family:arial
}
So I changed it back to this in the meantime:
/* Some definitions used everywhere */
BODY {
background: #CFD4E0 url('images/stripes.jpg');
color: #000000;
margin: 0;
padding: 0;
text-align: center;
font-style:normal; font-variant:normal; font-weight:normal; font-size:13px; font-family:arial
}
--------------------------------------------------------------
EDIT: I figured it out and used this code:
/* Some definitions used everywhere */
BODY {
background:#CFD4E0 url('images/stripes.jpg') repeat fixed; color: #000000;
margin: 0;
padding: 0;
text-align: center;
font-style:normal; font-variant:normal; font-weight:normal; font-size:13px; font-family:arial
}
Great! It's it nice to figure something out?
You could also have used background-attachment: fixed; The code you used is the shortcut for defining all background properties at once.
In case you haven't noticed I'm godess of most things CSS. (I'll regret saying that later... :lol:)
Thanks for responding, Carissa. Yes, it's great when you figure out something that keeps stumping you.