/    Sign up×
Community /Pin to ProfileBookmark

lightbox effect using CSS

So i have this lightbox effect that i did with css…

works great in FF/Chrome/Mac’s but not in the IE browsers…

I think it has to do with the Z-indexing. any suggestions? CSS Code below. Full Code Attached.

.black_overlay {
display: none;
position: absolute;
top: 0%;
left: 0%;
width: 100%;
height: 100%;
background-color: black;
z-index: 1000;
-moz-opacity: 0.6;
opacity:.60;
filter: alpha(opacity=80);
}

.white_content {
display: none;
position: absolute;
top: 12%;
left: 26%;
width: 760px;
height: 600px;
padding: 0px;
z-index: 1002;
overflow: hidden;
margin: 0px auto;
}

[upl-file uuid=cc728069-5d9f-4ba7-80b9-260a68cf00ce size=7kB]fullcode.txt[/upl-file]

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@Andyram2kJul 18.2009 — Hi Cap_One,

Have you got a live example of this at all please? Cheers.

  • - Andy.
  • Copy linkTweet thisAlerts:
    @jalarieJul 10.2010 — Is this what you had in mind:

    <i>
    </i> Shadow-Box Frame: Internet Explorer doesn't like "display: table" in the style sheet, so we need a hack to get this:



    <i> </i>.SB-container {
    <i> </i> border: 1px solid black;
    <i> </i> padding: 0px;
    <i> </i> line-height: 0.01;
    <i> </i> display: table-cell;
    <i> </i>}
    <i> </i>.SB-container { /* IE hack */
    <i> </i> display: inline-block;
    <i> </i> width: 1px;
    <i> </i>}
    <i> </i>.SB-back {
    <i> </i> border-top: 4px solid white;
    <i> </i> border-left: 4px solid white;
    <i> </i> border-right: 4px solid black;
    <i> </i> border-bottom: 4px solid black;
    <i> </i>}
    <i> </i>.SB-middle {
    <i> </i> border-top: 4px solid #666666;
    <i> </i> border-left: 4px solid #666666;
    <i> </i> border-right: 4px solid #cccccc;
    <i> </i> border-bottom: 4px solid #cccccc;
    <i> </i>}
    <i> </i>.SB-front {
    <i> </i> background-color: #ffffee; /* background color of content */
    <i> </i> color: #000000; /* text color of content */
    <i> </i> border: 1px solid #000000; /* border color */
    <i> </i> padding: 0px 4px 0px 4px;
    <i> </i> line-height: normal;
    <i> </i>}
    <i> </i>.SB-image {
    <i> </i> border: 1px solid #000000; /* border color */
    <i> </i>}
    &lt;/style&gt;

    -------------------------------------------------------

    &lt;div style="margin-left: 20px;"&gt;
    &lt;table border="0" cellspacing="0" cellpadding="0"&gt;
    &lt;tbody&gt;&lt;tr&gt;&lt;td class="SB-container"&gt;
    &lt;div class="SB-back"&gt;
    &lt;div class="SB-middle"&gt;
    &lt;div class="SB-image" align="left"&gt;
    &lt;img src="mvc-001f.jpg" style="padding: 0px;" /&gt;
    &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
    &lt;/div&gt;

    ×

    Success!

    Help @cap_0ne spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 6.2,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,
    )...