Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.