0

I have 3 background images and a colour that I want to put onto a mock up webpage however I can't get them to show at all, here is the css I am using:

body{
 #FF0,
 url(../Pictures/midal_foot_img_lg.png) bottom center no-repeat,
 url(../Pictures/banner.png) center no-repeat,
 background:url(../Pictures/header2.png) top center no-repeat;
}
Piyush Marvaniya
2,5623 gold badges19 silver badges28 bronze badges
asked May 5, 2014 at 9:27
2

2 Answers 2

1

I think your syntax isn't right, try this:

body {
 background: 
 url(../Pictures/midal_foot_img_lg.png) bottom center no-repeat,
 url(../Pictures/banner.png) center no-repeat,
 url(../Pictures/header2.png) top center no-repeat;
 background-color: #FF0;
}

Source

answered May 5, 2014 at 9:31
Sign up to request clarification or add additional context in comments.

1 Comment

The background-color needs to come last or it'll be overridden. Either move the background-color declaration below, or put the #FF0 at the very end of the background value.
0

Css property name must go before value. In your case background. Also you may want to check out question Barnee pointed to.

 body{
 background: 
 url(../Pictures/midal_foot_img_lg.png) bottom center no-repeat,
 url(../Pictures/banner.png) center no-repeat,
 url(../Pictures/header2.png) top center no-repeat,
 #FF0
 }
answered May 5, 2014 at 9:38

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.