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

Background opacity

Hi, everyone! I have some issue: I have a header with next parameters (position: fixed; top:0; left:0; background:rgba(247, 84, 12, 0.75);) And when i change the position parameter to static in my @media, background opacity disappeared, and development tools show me that background is rgba(247, 84, 12, 0.75); How can i retain my opacity?

1 Answer

Try adding the !important attribute like so: rgba(247, 84, 12, 0.75) !important;