Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6837251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:27:18+00:00 2026-05-26T23:27:18+00:00

So I am attempting to make a really simple lightbox that I can use

  • 0

So I am attempting to make a really simple lightbox that I can use for something, however for whatever reason the div thats supposed to darken the background is canceling out any background attribute.

HTML

<div class="zoom-placeholder">
    <div class="zoom-container">
        <img class="zoom" src="image.png" />
    </div>
</div>

CSS

.zoom {
    margin: 1em 0em; padding: 1em;
    background: #f9f9f9;
    border: 1px solid #ccc; border-bottom-width: 2px;
    box-shadow: rgba(0,0,0,0.075) 0px 2px 3px, inset rgba(255,255,255,0.5) 0px 0px 25px;
    user-select: none;
    user-drag: none;
}
.zoom-container, .zoom-placeholder {display:table-cell}
.zoom-container.open {
    position: fixed;
    z-index: 999;
    width: 100%; height: 100%;
    top: 0px; bottom: 0px;
    left: 0px; right: 0px;
    background: rgba(0,0,0,0,0.5); /* <--- Not Working --- */
}
.zoom-container.open .zoom {
    width: auto;
    height: auto;
    position: absolute;
    margin: 0em;
    border-color: rgba(0,0,0,0.1);
    box-shadow: rgba(0,0,0,0.5) 0px 10px 30px, inset rgba(255,255,255,0.5) 0px 0px 25px;
}

There isn’t anything I have that’s writing it over but its still not displaying correctly.

You can see this in use here:

http://jsfiddle.net/JamesKyle/8H7hR/34/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T23:27:19+00:00Added an answer on May 26, 2026 at 11:27 pm

    Look at the CSS background: rgba(0,0,0,0,0.5); /* <--- Not Working --- */ is not working because that’s invalid CSS3 should be background: rgba(0,0,0,0.5);
    Notice the missing 0 you had 1 too many. R ed, G reen, B lue, A lpha transparency. :]

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am attempting to make a simple connection to a remote database. I can
Attempting to make a NSObject called 'Person' that will hold the login details for
I'm attempting to make a very simple 2-person chatroom for my Django site. I'm
I'm attempting to make use of the UIDocumentInteractionController mechanism in iPhone OS 3.2, but
You can see my project here - http://www.inluxphoto.com/custom/jsgallery/index.php I am attempting to make the
I make use of generic views and I am attempting to query my MySQL
Im attempting to make a little app that lets you add text boxes to
I am attempting to make a program that will pull data such as OS,
I'm attempting to make a system that stores employees details...name address etc. I would
I am attempting to make a dynamic image with PHP, and I can't find

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.