(Solved) Fixed Back...
 
Notifications
Clear all

(Solved) Fixed Background

3 Posts
2 Users
0 Reactions
1,686 Views
(@funkycanuck)
Posts: 13
Active Member
Topic starter
 

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
}


 
Posted : 05/05/2008 10:10 pm
(@carissa)
Posts: 791
Member Moderator
 

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:)


 
Posted : 05/05/2008 11:58 pm
(@funkycanuck)
Posts: 13
Active Member
Topic starter
 

Thanks for responding, Carissa.  Yes, it's great when you figure out something that keeps stumping you.  :mrgreen:


 
Posted : 06/05/2008 2:40 am
Share: