Cap'nKirk 10 Still Wearing L Plates

I have a Drupal site and am in the process of customizing the Lightbox2 module for it to display some of my Flickr images.

I am at the stage at the moment of placing a drop shadow around the lightbox using the 'box-shadow' expression.

The problem I am having is that the lightbox itself is made up of 2 separate boxes and I keep getting the box-shadow appear in the join between the two.

The only way I have found for it not to show is by not allowing the shadow there but then that causes the shadow to fall short on the perpendicular line.

I have tried using 'clip rect' in the '#outerImageContainer' & '#imageDataContainer' tags but this does not work because their position is not absolute.

I tried 'clip rect' in the main '#lightbox' tag as this is absolute but my issues here are that the lightbox varies it's width & height according to the image loaded, so I cannot figure out how to set the 'clip rect' co-ords.

I have tried using 'z-index' but that did not seem to do anything.

HERE is a screenshot of the issue.

Below is code from my css; I have only removed references to nav buttons.

#lightbox {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  z-index: 100;
  text-align: center;
  line-height: 0;
}
 
#lightbox a img {
  border: none;
 
}
 
#outerImageContainer {
  position: relative;
  background-color: #fff;
  width: 250px;
  height: 250px;
  margin: 0 auto;
  min-width: 240px;
  overflow: hidden;
border-top-style: solid;
border-left-style: solid;
border-right-style: solid;
border-width: 1px;
border-color: #000;
-webkit-box-shadow: 10px 10px 20px #7a7a7a, -10px -10px 20px #7a7a7a, 10px -10px 20px #7a7a7a, -10px 10px 20px #7a7a7a; 
 
}
 
#imageContainer, #frameContainer, #modalContainer {
  padding: 10px;
}
 
#modalContainer {
  line-height: 1em;
  overflow: auto;
}
 
#loading {
  height: 25%;
  width: 100%;
  text-align: center;
  line-height: 0;
  position: absolute;
  top: 40%;
  left: 45%;
  *left: 0%;
}
 
#imageDataContainer {
  font: 10px Verdana, Helvetica, sans-serif;
  background-color: #fff;
  margin: 0 auto;
  line-height: 1.4em;
  min-width: 240px;
border-bottom-style: solid;
border-left-style: solid;
border-right-style: solid;
border-width: 1px;
border-color: #000;
-webkit-box-shadow: 10px 10px 20px #7a7a7a, -10px -10px 20px #7a7a7a, 10px -10px 20px #7a7a7a, -10px 10px 20px #7a7a7a; 
 
}
 
#imageData {
  padding: 0 10px;
}
 
#imageData #imageDetails {
  width: 70%;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}
 
#overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 90;
  width: 100%;
  height: 500px;
  background-color: #000;
}
 
#overlay_default {
  opacity: 0.6;
}
 
#overlay_macff2 {
  background: transparent url(../images/overlay.png) repeat;
}
 
.clearfix:after {
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}
 
* html>body .clearfix {
  display: inline;
  width: 100%;
}
 
* html .clearfix {
  /* Hides from IE-mac \*/
  height: 1%;
  /* End hide from IE-mac */
}
 
.lightbox_hide_image {
  display: none;
}

Regards..,

Kirk

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.