NIck_Fallows
NIck_Fallows

Reputation: 17

Multiple CSS backgrounds

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;
}

Upvotes: 0

Views: 69

Answers (2)

Olga
Olga

Reputation: 1690

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
   }

Upvotes: 0

Ex-iT
Ex-iT

Reputation: 1477

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

Upvotes: 1

Related Questions