11548 sujets

JavaScript, DOM et API Web HTML5

Bonjour,

J'utilise un lightbox avec jquery et lorsque mon image est trop grande et que les barres de défilement sont présentes mon arrière plan ne suit pas jusqu'en bas.

Vous pouvez voir un exemple à cette page le problème est que sur la première image.

http://www.joly-design.com/test/jquery/lightbox/

Voici une capture d'écran : Capture d'écran

Voici le css du lightbox. J'ai même essayé de supprimer le height et j'ai aussi essayé le height à 100% du ID #jquery-overlay.



#jquery-overlay {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 90;
	width: 100%;
	height: 500px;
}
#jquery-lightbox {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 100;
	text-align: center;
	line-height: 0;
}
#jquery-lightbox a img { border: none; }
#lightbox-container-image-box {
	position: relative;
	background-color: #fff;
	width: 250px;
	height: 250px;
	margin: 0 auto;
}
#lightbox-container-image { padding: 10px; }
#lightbox-loading {
	position: absolute;
	top: 40%;
	left: 0%;
	height: 25%;
	width: 100%;
	text-align: center;
	line-height: 0;
}
#lightbox-nav {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	z-index: 10;
}
#lightbox-container-image-box > #lightbox-nav { left: 0; }
#lightbox-nav a { outline: none;}
#lightbox-nav-btnPrev, #lightbox-nav-btnNext {
	width: 49%;
	height: 100%;
	zoom: 1;
	display: block;
}
#lightbox-nav-btnPrev { 
	left: 0; 
	float: left;
}
#lightbox-nav-btnNext { 
	right: 0; 
	float: right;
}
#lightbox-container-image-data-box {
	font: 10px Verdana, Helvetica, sans-serif;
	background-color: #fff;
	margin: 0 auto;
	line-height: 1.4em;
	overflow: auto;
	width: 100%;
	padding: 0 10px 0;
}
#lightbox-container-image-data {
	padding: 0 10px; 
	color: #666; 
}
#lightbox-container-image-data #lightbox-image-details { 
	width: 70%; 
	float: left; 
	text-align: left; 
}	
#lightbox-image-details-caption { font-weight: bold; }
#lightbox-image-details-currentNumber {
	display: block; 
	clear: left; 
	padding-bottom: 1.0em;	
}			
#lightbox-secNav-btnClose {
	width: 66px; 
	float: right;
	padding-bottom: 0.7em;	
}


Avez-vous besoin du javascript aussi?
Modifié par britanicus75 (11 Nov 2009 - 05:00)
Enfin j'ai trouvé la réponse sur le web.

Pour ceux que ca intéresse il suffit de changer la position:absolute pour position:fixed; dans le css.



#jquery-overlay {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 90;
	width: 100%;
	height: 500px;
}
Salut,
a écrit :
Enfin j'ai trouvé la réponse sur le web.

Merci pour le retour, j'ai également cherché un moment avant de trouver... ton post.