Précédent   Forum des professionnels en informatique > Webmasters - Développement Web > CSS
CSS Forum d'entraide sur l'utilisation des feuilles de style CSS. Avant de poster : Cours CSS, FAQ CSS, Galerie CSS
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 16/05/2011, 10h29   #1
Invité de passage
 
Inscription : avril 2008
Messages : 30
Détails du profil
Informations forums :
Inscription : avril 2008
Messages : 30
Points : 1
Points : 1
Par défaut Mettre une pub en premier plan

Salut tout le monde !

Je souhaite afficher une pub de la manière suivante :

Calque noir transparent sur la page et popup centrée sur le calque.
La page du site doit donc être visible en fond.


Mon code HTML :

Code html :
1
2
3
4
5
6
7
8
9
10
 
 
<div class="jeuxBackground" id="jeuxBackground" name="jeuxBackground" style="display: block;"></div>
 
<div class="jeu-container" id="jeuxContainer" name="jeuxContainer" style="display: block; text-align:center">
	<div id="jeu-contenu" >
    	<div id="jeu-left"></div>
        <div id="jeu-right"></div>
    </div>
</div>

Mes styles :

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
 
 
.jeuxBackground {
    background-color: #000;
    display: none;
    height: 100% !important;
    opacity: 0.6;
    position: fixed !important;
    width: 100%;
    z-index: 50;
}
 
 
.jeu-container {
    display: none;
    height: 100%;
    position: fixed !important;
    text-align: center;
    width: 100%;
    z-index: 80;
}
 
#jeu-contenu {
	width:900px; 
	height:370px; 
	background-color:#FFF; 
	margin-top:11%; 
	margin-left: auto; 
	margin-right: auto;
	padding-left:20px;
	padding-top:20px;
 
}
 
#jeu-left {
	width:310px; 
	height:340px; 
	background-color:#9999cd; 
	float:left;
 
}
 
#jeu-right {
	width:550px; 	
	height:340px; 
	background-color:#000; 
	margin-left:20px;
	float:left;
 
 
}
Pour être plus explicite, j'ai mis une capture...




On voit bien les bordures de la page du site.

Sur Firefox ça fonctionne niquel, la popup descend avec le scroll.
Sur IE, tout est affiché l'un en dessous de l'autre :
Fond transparent, popup, site.

Mon problème est donc la compatibilité avec IE.

Merci pour votre aide !
yanngolf est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 16/05/2011, 11h11   #2
Membre éclairé
 
Avatar de Ceddoc
 
Homme Cédric
Développeur Java / Web / .NET
Inscription : janvier 2009
Messages : 327
Détails du profil
Informations personnelles :
Nom : Homme Cédric
Âge : 23
Localisation : France, Rhône (Rhône Alpes)

Informations professionnelles :
Activité : Développeur Java / Web / .NET
Secteur : High Tech - Multimédia et Internet

Informations forums :
Inscription : janvier 2009
Messages : 327
Points : 369
Points : 369
pour la transparence au premier abord j'aurais tendance à dire que IE ne gère pas le opacity il faut utiliser filter: opacity ou quelque chose du genre.
Ceddoc est déconnecté   Envoyer un message privé Réponse avec citation 01
Vieux 16/05/2011, 11h45   #3
Membre confirmé
 
Inscription : février 2009
Messages : 317
Détails du profil
Informations forums :
Inscription : février 2009
Messages : 317
Points : 209
Points : 209
Pour gérer l'opacity :
Code :
1
2
3
	opacity : 0.6;
    -moz-opacity : 0.6;
    -ms-filter: "alpha(opacity=60)";
insane1 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 16/05/2011, 15h25   #4
Invité de passage
 
Inscription : avril 2008
Messages : 30
Détails du profil
Informations forums :
Inscription : avril 2008
Messages : 30
Points : 1
Points : 1
Super Merci pour l'opacité.

Par contre les blocs s'affichent toujours l'un en dessous de l'autre sur IE mais ça fonctionne niquel sur FF et Chrome.

Affichage sur IE :
Partie transparente puis en dessous popup et en dessous site internet
yanngolf est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 11h59.


 
 
 
 
Partenaires

Hébergement Web