Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

problem with multiple background

Im trying to use 3 bacgrounds in one and is not working. This is the code im using:

/* Safari 4-5, Chrome 1-9 */ background-image: url('../img/bacg-001.png') no-repeat, url('../img/bacg-002.png') left bottom repeat-x, -webkit-gradient(linear, 0% 0%, 0% 100%, from(#c38b70), to(#f3eedf));

/* Safari 5.1, Chrome 10+ */ background-image: url('../img/bacg-001.png') no-repeat, url('../img/bacg-002.png') left bottom repeat-x, -webkit-linear-gradient(bottom, #f3eedf, #f3eedf, #f3eedf, #c38b70);

/* Firefox 3.6+ */ background-image: url('../img/bacg-001.png') no-repeat, url('../img/bacg-002.png') left bottom repeat-x, -moz-linear-gradient(bottom, #f3eedf, #f3eedf, #f3eedf, #c38b70);

/* IE 10 */ background-image: url('../img/bacg-001.png') no-repeat, url('../img/bacg-002.png')left bottom repeat-x, -ms-linear-gradient(bottom, #f3eedf, #f3eedf, #f3eedf, #c38b70);

/* Opera 11.10+ */ background-image: url('../img/bacg-001.png')no-repeat, url('../img/bacg-002.png') left bottom repeat-x, -o-linear-gradient(bottom, #f3eedf, #f3eedf, #f3eedf, #c38b70);

1 Answer

You have neglected to add a position after the first URL and jumped straight to no-repeat:

Additionally I do not think that gradient with vendor prefix is valid syntax for the shorthand method you are trying to accomplish.

This page may help http://www.css3.info/preview/multiple-backgrounds/