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

Nick Zachary
Nick Zachary
6,816 Points

How to create a colored background with texture? (In CSS HTML)

background-color:#CC2738 How do i add texture on top of this color?

1 Answer

Hey Nick!

Sounds like you're trying to use a background shorthand property to add a texture, get rid of the word "-color" from the property in order to use the background shorthand property. Below is the anatomy of the background shorthand property for you to reference :)

background: #color url('image') repeat/no-repeat fixed position;

Hope that helps!

Best,

E