Homepage selbermachen 7.851 Themen, 35.616 Beiträge

Change lightbox bg.

kesart / 16 Antworten / Flachansicht Nickles
Can some one help me out with a Lightbox CSS text. I use CSS scripts but don't have much knollege how they work.

I would like the lightbox background to be Grey-Transparent.
As you can see I have tried to change the text myself. All I have manged to do succesfully is to change the text from black to transparent this works OK for the image, but the image title and the X to close the Image are in the transparent part of the Box and not readable against the page background.

How can I change the text so that title and the X are in the white Image border?

/* line 6, ../sass/lightbox.sass */
#lightboxOverlay {
position: absolute;
top: 0;
left: 0;
z-index: 9999;
background-color: transparent; filter: progid: DXImageTransform.Microsoft.Alpha(Opacity=85);
opacity: 0.85;
display: none;
}

/* line 15, ../sass/lightbox.sass */
#lightbox {
position: absolute;
left: 0;
width: 100%;
z-index: 10000;
text-align: center;
line-height: 0;
font-family: "lucida grande", tahoma, verdana, arial, sans-serif;
font-weight: normal;
}
/* line 24, ../sass/lightbox.sass */
#lightbox img {
width: auto;
height: auto;
}
/* line 27, ../sass/lightbox.sass */
#lightbox a img {
border: none;
}

/* line 30, ../sass/lightbox.sass */
.lb-outerContainer {
position: relative;
background-color: white;
*zoom: 1;
width: 250px;
height: 250px;
margin: 0 auto;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
-ms-border-radius: 4px;
-o-border-radius: 4px;
border-radius: 4px;
}
/* line 38, ../../../../.rvm/gems/ruby-1.9.2-p290/gems/compass-0.12.1/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss */
.lb-outerContainer:after {
content: "";
display: table;
clear: both;
}

/* line 39, ../sass/lightbox.sass */
.lb-container {
padding: 10px;
}

/* line 42, ../sass/lightbox.sass */
.lb-loader {
position: absolute;
top: 40%;
left: 0%;
height: 25%;
width: 100%;
text-align: center;
line-height: 0;
}

/* line 51, ../sass/lightbox.sass */
.lb-nav {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: 10;
}

/* line 59, ../sass/lightbox.sass */
.lb-container > .nav {
left: 0;
}

/* line 62, ../sass/lightbox.sass */
.lb-nav a {
outline: none;
}

/* line 65, ../sass/lightbox.sass */
.lb-prev, .lb-next {
width: 49%;
height: 100%;
background-image: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");
/* Trick IE into showing hover */
display: block;
}

/* line 72, ../sass/lightbox.sass */
.lb-prev {
left: 0;
float: left;
}

/* line 76, ../sass/lightbox.sass */
.lb-next {
right: 0;
float: right;
}

/* line 81, ../sass/lightbox.sass */
.lb-prev:hover {
background: url(../images/prev.png) left 48% no-repeat;
}

/* line 85, ../sass/lightbox.sass */
.lb-next:hover {
background: url(../images/next.png) right 48% no-repeat;
}

/* line 88, ../sass/lightbox.sass */
.lb-dataContainer {
margin: 0 auto;
padding-top: 5px;
*zoom: 1;
width: 100%;
-moz-border-radius-bottomleft: 4px;
-webkit-border-bottom-left-radius: 4px;
-ms-border-bottom-left-radius: 4px;
-o-border-bottom-left-radius: 4px;
border-bottom-left-radius: 4px;
-moz-border-radius-bottomright: 4px;
-webkit-border-bottom-right-radius: 4px;
-ms-border-bottom-right-radius: 4px;
-o-border-bottom-right-radius: 4px;
border-bottom-right-radius: 4px;
}
/* line 38, ../../../../.rvm/gems/ruby-1.9.2-p290/gems/compass-0.12.1/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss */
.lb-dataContainer:after {
content: "";
display: table;
clear: both;
}
I have uploaded the page so that you can see what i have done.

Here is the link to it:
http://www.kes-art-studio.com/german...hite_deu-2.htm

As you can see it is not very easy to read the text below the image.
bei Antwort benachrichtigen
kesart Borlander „Yes :-) Without the leading "-". This is only used for...“
Optionen

Thanks it worked, you are right the grey is to light, I tried to place text-color: black; in the same block but it didn't work. I can't find anything to do with the text accept the font info:-

 /* line 15, ../sass/lightbox.sass */
#lightbox {
position: absolute;
left: 0;
width: 100%;
z-index: 10000;
text-align: center;
line-height: 0;
font-family: "lucida grande", tahoma, verdana, arial, sans-serif;
font-weight: normal;
}

do I have to place it there?

bei Antwort benachrichtigen