...

View Full Version : CSS Background Help



OpenIntro
09-25-2006, 01:00 PM
I am trying to place an image on my background using CSS and using the following properties, but all that is showing up is the background color. If I remove the bottom 3, the image then appears. How do I use the bottom 3 attributes correctly?



body {
background-image: url(etback.jpg);
background:#484033;
background-attachment: fixed;
background-repeat: no-repeat;
background-position: bottom left;
}

OpenIntro
09-25-2006, 01:24 PM
nm....fixed it by just putting it all on one line....


background: #484033 url(etback.jpg) no-repeat fixed bottom left;

VIPStephan
09-25-2006, 01:34 PM
Your problem wasn't that you did something wrong with the last three properties but with the one before those. If you are going the way like in your first post it must read:


body {
background-image: url(etback.jpg);
background-color:#484033;
background-attachment: fixed;
background-repeat: no-repeat;
background-position: bottom left;
}


The background property (without additional specification) is an abbreviation for all properties together, that's why the method in your second post is working.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum