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 jQuery Basics (2014) Creating a Simple Lightbox Perform: Part 2

Prakhar Patwa
Prakhar Patwa
11,260 Points

after adding the css property display:none; & rgba(0,0,0,0.7); it shouuld be hidden fully

after adding the css property display:none; & rgba(0,0,0,0.7); it shouuld be hidden fully,Means page should be stay remain same as before , this is what i am thinking but its wrong.

what is the reason behind it,when we are giving the css property display:none; and it showing the little-bit rgbaa color on full screen? (My code is work properly but not clear with the concept.)

1 Answer

Christopher van Ruitenbeek
Christopher van Ruitenbeek
13,705 Points

First, what is the code you used?

Because what you write here would look like this:

element {
  display: none;
  rgba(0,0,0,0.7);
}

RGBA is nog a css function you can call on.