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
2 Answers 2
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;
}
answered May 5, 2014 at 9:31
Ex-iT
1,4752 gold badges12 silver badges20 bronze badges
Sign up to request clarification or add additional context in comments.
1 Comment
BoltClock
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.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
Olga
1,7001 gold badge22 silver badges34 bronze badges
Comments
lang-html
,after#FF0