IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Mise en page CSS Discussion :

Problème avec la position aboslute


Sujet :

Positionnement en CSS

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre confirmé
    Profil pro
    Inscrit en
    Mars 2009
    Messages
    204
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2009
    Messages : 204
    Par défaut Problème avec la position aboslute
    bonjour

    Voila c'est au sujet de ma fenêtre centrale.
    Voila le code Css de ma fenêtre

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    .fenetre{
    overflow: auto;
    position:absolute;
      width:725px;
      width:725px !important;
    height : 402px ;
      top: 150px;
      left: 275px;
     left: 275px !important;
    }
    Jusqu'a ce matin ca marché très bien autant sous IE que sur Firefox.

    J'ai juste changer des mesure sur la largeur de ma fenêtre et d'un seul coup elle avait disparu sous IE. J'ai remis mes anciens paramettres et ca ne marche toujours pas. Du coup j'ai suprimer mon code css. C'est sur c'est en vrac mais c'est afficher. J'ai remis ma position absolute et vlam ma fenttre disparait. Je ne comprend pas pourquoi.

    Du coup j'essaye ca

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    .fenetre{
    overflow: auto;
    position:relative;
     
      width:752px;
      top: 10px;
      height : 402px ;
    C'est top sous IE mais sur firefox c'est pas bon.

    Du coup j'essaye ca

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    .fenetre{
    overflow: auto;
    position:relative!important;
    position:absolute;
      width:752px;
      top: 10px;
      height : 402px ;
    Le problème c'est que ma fenêtre disparait aussito. Pourquoi?


    Merci par avance de votre aide.

    Au cas ou voila le code de la page

    Code html : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
    <head>
    <title>
    Faire part naissance et faire part mariage : création de faire part originaux et faire part personalisé sur les faire parts de gaya.</title>
    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1;" />
    <meta name="description" content="création de faire part de mariage, faire part de naissance et faire part originaux et faire part personalisé"/>
    <meta name="keywords" content="faire,part,faire part,faire part naissance,faire part mariage, création de faire part, faire part personalisé, creation, personalisation, faire part de naissance,faire part deuil, bébé, bapteme, modeles faire part pour mariage,fille,garçon, faire parts,faire part photo, faire-part, faire parts naissance, faire parts de naissance, faire-part mariage, faire-part jumeaux, faire-part naissance garçon, faire-parts, faire-parts mariage,marié,liste, gratuit,cartes de remerciement, carte de mariage, carte de naissance, BAPTEME,CARTE DE DEUIL, papier, gratuit, texte faire part, faire part gaya" />
    <meta http-equiv="content-language" content="fr, en" />
    <meta name="author" content="les faire parts de gaya" />
    <link rel="shortcut icon" type="image/x-icon" href="gaya_files/favicon0.htm" />
    <link rel="stylesheet" href="page41.css" type="text/css" media="all" />
     
     
    </head>
    <body>
    <div class="centreX">
    	<div id="header">
    		<p class="texte"><strong><span class="titre">Les faire-part de Gaya</span></p> <p class="slogan">Faire-part de mariage originaux et personnalisés.</strong></p>
     
     
     
    	</div>
    	<div id="content">
     
     
    		<div class="fenetre">
    <br>
    			<h1>La collection de faire-part de mariage </h1>
     
    			<table>
       <tr>
           <td><a href="http://www.lemondedegaya.fr/zen.php" class="uli" ><img src="images/comme_site_devant_petite.jpg" alt="" width="141" height="100" /></a></td>
           <td><a href="http://www.lemondedegaya.fr/oui.php" class="uli" ><img src="images/oui_devant_petite.jpg" alt="" width="141" height="100" /></a></td>
           <td><a href="http://www.lemondedegaya.fr/lesmaries.php" class="uli" ><img src="images/dessin_marie_devant_petite.jpg" alt="" width="141" height="100" /></a></td>
           <td><a href="http://www.lemondedegaya.fr/cygne.php" class="uli" ><img src="images/petites/cygne_petite.jpg" alt="" width="141" height="100" /></a></td>
     
       </tr>
       <tr>
           <td><a href="http://www.lemondedegaya.fr/zen.php" class="uli" >Zen</a></td>
           <td><a href="http://www.lemondedegaya.fr/oui.php" class="uli" >Oui</a></td>
           <td><a href="http://www.lemondedegaya.fr/lesmaries.php" class="uli" >Les mariés</a></td>
    	   <td><a href="http://www.lemondedegaya.fr/cygne.php" class="uli" >Les cygnes</a></td>
     
      </table>	   
     
      <table class="hauteur">
      </table>
      <table>
       <tr>
           <td><a href="http://www.lemondedegaya.fr/plume.php" class="uli" ><img src="images/petites/plume1_devant_petite.jpg" alt="" width="141" height="100" /></a></td>
           <td><a href="http://www.lemondedegaya.fr/plume.php" class="uli" ><img src="images/petites/plume2_devant_petite.jpg" alt="" width="141" height="100" /></a></td>
           <td><a href="http://www.lemondedegaya.fr/plume.php" class="uli" ><img src="images/petites/plume3_devant_petite.jpg" alt="" width="141" height="100" /></a></td>
    		<td><a href="http://www.lemondedegaya.fr/fleur_pastel.php" class="uli" ><img src="images/petites/fleur_pastel_devant_petite.jpg" alt="" width="141" height="100" /></a></td>
     
       </tr>
       <tr>
           <td><a href="http://www.lemondedegaya.fr/plume.php" class="uli" >Plume1</a></td>
           <td><a href="http://www.lemondedegaya.fr/plume.php" class="uli" >Plume2</a></td>
           <td><a href="http://www.lemondedegaya.fr/plume.php" class="uli" >Plume3</a></td>
    	   <td><a href="http://www.lemondedegaya.fr/cygne.php" class="uli" >Fleur pastel</a></td>
       </tr>
     
    </table >
     
     
    <table class="hauteur">
      </table>
     
     
    <table>
       <tr>
           <td><a href="http://www.lemondedegaya.fr/orchidee.php" class="uli" ><img src="images/petites/orchidee_devant_petite.jpg" alt="" width="141" height="100" /></a></td>
           <td><a href="http://www.lemondedegaya.fr/lys.php" class="uli" ><img src="images/petites/lys_droit_devant_petite.jpg" alt="" width="141" height="100" /></a></td>
           <td><a href="http://www.lemondedegaya.fr/lys.php" class="uli" ><img src="images/petites/lys_couche_petite.jpg" alt="" width="141" height="100" /></a></td>
    		<td><a href="http://www.lemondedegaya.fr/lys_blanc.php" class="uli" ><img src="images/petites/lys_blanc_devant_petite.jpg" alt="" width="141" height="100" /></a></td>
     
       </tr>
       <tr>
    	   <td><a href="http://www.lemondedegaya.fr/orchidee.php" class="uli" >L'orchidée</a></td>
           <td><a href="http://www.lemondedegaya.fr/lys.php" class="uli" >Lys</a></td>
           <td><a href="http://www.lemondedegaya.fr/lys.php" class="uli" >Deux lys</a></td>
    	   <td><a href="http://www.lemondedegaya.fr/lys_blanc.php" class="uli" >Lys blanc</a></td>
       </tr>
     
    <br>
     
      </table >
     
     
    <table class="hauteur">
      </table>
     
     
    <table>
       <tr>
           <td><a href="http://www.lemondedegaya.fr/rose2.php" class="uli" ><img src="images/petites/recrose1_petite.jpg" alt="" width="141" height="100" /></a></td>
           <td><a href="http://www.lemondedegaya.fr/rose2.php" class="uli" ><img src="images/petites/recrose2_petite.jpg" alt="" width="141" height="100" /></a></td>
           <td><a href="http://www.lemondedegaya.fr/rose2.php" class="uli" ><img src="images/petites/recrose3_petite.jpg" alt="" width="141" height="100" /></a></td>
           <td><a href="http://www.lemondedegaya.fr/coquelicot.php" class="uli" ><img src="images/petites/coquelico_devant_petite.jpg" alt="" width="141" height="100" /></a></td>
     
       </tr>
       <tr>
           <td><a href="http://www.lemondedegaya.fr/rose2.php" class="uli" >Rose</a></td>
           <td><a href="http://www.lemondedegaya.fr/rose2.php" class="uli" >Pétales</a></td>
           <td><a href="http://www.lemondedegaya.fr/rose2.php" class="uli" >Coeur de pétale</a></td>
    	   <td><a href="http://www.lemondedegaya.fr/coquelicot.php" class="uli" >Coquelicot</a></td>
    	 </tr>  
      </table>	  	
    			<table class="hauteur">
      </table>
     
     
    <table>
       <tr>
           <td><a href="http://www.lemondedegaya.fr/gourmandise.php" class="uli" ><img src="images/petites/carre_devant_petite.jpg" alt="" width="141" height="100" /></a></td>
           <td><a href="http://www.lemondedegaya.fr/gourmandise.php" class="uli" ><img src="images/petites/escargot_devant_petite.jpg" alt="" width="141" height="100" /></a></td>
           <td><a href="http://www.lemondedegaya.fr/gourmandise.php" class="uli" ><img src="images/petites/coeur_chocolat_devant_petit.jpg" alt="" width="141" height="100" /></a></td>
           <td><a href="http://www.lemondedegaya.fr/canelle.php" class="uli" ><img src="images/petites/cannelle_devant_petite.jpg" alt="" width="141" height="100" /></a></td>
     
       </tr>
       <tr>
           <td><a href="http://www.lemondedegaya.fr/gourmandise.php" class="uli" >Carré de chocolat</a></td>
           <td><a href="http://www.lemondedegaya.fr/gourmandise.php" class="uli" >Escargot en chocolat</a></td>
           <td><a href="http://www.lemondedegaya.fr/gourmandise.php" class="uli" >Coeur en chocolat</a></td>
    	   <td><a href="http://www.lemondedegaya.fr/canelle.php" class="uli" >Cannelle</a></td>
     
      </table>	 
    		</div>
    	</div>
     
    </div>
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    try {
    var pageTracker = _gat._getTracker("UA-11713821-1");
    pageTracker._trackPageview();
    } catch(err) {}</script>
    </body>
    </html>

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    li
    {display:inline;}
     
    .centreX
    {
    	position:absolute;
    	left:50%;
    	margin-left:-500px;
    	width: 1000px;
    	top:50%;
    	margin-top:-276px;
    	height: 552px;
    	background-image : url("images/fond_page2.JPG");
    	background-repeat: no-repeat;
    	border :2px solid black;
    	font-style: italic;
    		font-family:comic sans ms, Times New Roman, Times, serif;
     
    }
     
    .centreX2
    {
    	position:absolute;
    	left:50%;
    	margin-left:-500px;
    	width: 1000px;
    	top:50%;
    	margin-top:-276px;
    	height: 552px;
    	background-image : url("images/fond_page_format.jpg");
    	background-repeat: no-repeat;
    	border :2px solid black;
    	font-style: italic;
    		font-family:comic sans ms, Times New Roman, Times, serif;
     
    }
     
    body {
    	background-color: #f7d8fc;
    		font-family:comic sans ms, Times New Roman, Times, serif;
    	font-style: italic;}
     
    	span.titre {
    color: #b04cbf;
     
    	font-size: 26px;
    	text-decoration: none;
    	text-align: center;
    	position:absolute;
    	top: 10px;
    	left : 230px;
    	font-style: italic;
     
    }
     
    a {
    	color: #781d89;
    font-style: italic;
    	font-size: 17px;
    	text-decoration: none;
    	text-align: center;
    } 
     
    a:hover {
        color: #e365f6;
     
    	font-size: 17px;
    	text-decoration: none;
    	text-align: center;
    	font-style: italic;
    }
     
    .slogan {
    color: #7890d2;
     
    	font-size: 17px;
    	text-decoration: none;
    	text-align: right;
    	position:absolute;
    	top: 180px;
    	top: 55px !important;
     
    	left: 582px;
    	font-style: italic;
    	margin-right:5px;
    	}
     
    	h1
    	{
    	font-size: 17px;
     
    text-align:left;
    text-decoration: underline ;
    position:absolute;
    top: 15px;
    left:25px;
    color: #7890d2;
    	font-style: italic;
    }
     
     
    #menuHorizon {
    font-size: 13px;
    float:right;
    margin-top:110px;
    padding-left:0;
    padding-right:20px;
    font-style: italic;
     
    }
     
    #header p.texte {
    margin:0px;
    }
    #menuHorizon li {
    display:inline;
    height:400px;
    line-height:26px;
    vertical-align:top;
    left:100px;
    }
     
     
     
    .a {
    position: relative;
    	float:left;
    	width:165px;
    	height:370px;
    	top: 230px !important;
    top: 130px ;
    	text-align: center;
    	font-family:comic sans ms, Times New Roman, Times, serif;
    font-size: 17px;
    	}
     
     
    		.fenetre{
    overflow: auto;
    position:relative!important;
    position:absolute;
      width:752px;
      top: 10px;
      height : 402px ;
     
    }
     
     
     
     
     
     
    	table
    {
    margin: auto; /* Centre le tableau */
    position: relative;
    top: 40px;
       width:750px;
     
     font-size: 15px;
      }
    td
    {
    text-align: center; /* Tous les textes des cellules seront centrés*/
       border: 0px solid black;
    }
     
     
     
    																						/* page produit*/
     
    h2{
    text-align: center; 
    margin-right:15px;
    margin-left:5px;
    font-size: 15px;
    margin: 0;
    color: #7890d2;
    }
     
    h3{
     
    color: #7890d2;
    font-size: 15px;
    margin: 0;
    }
     
    h4
    	{
    	font-size: 17px;
    top: 15px;
    left:50px;
    color: #7890d2;
    	font-style: italic;
    	text-decoration: underline ;
    }
     
    .tableau
    {
    margin: auto; /* Centre le tableau */
    position: relative;
    top: -25px;
     
     
     font-size: 15px;
     
    }
     
    .texte{
    text-align: center; 
     width:720px;
     font-weight:bold;
    margin-left:15px;
    margin-right:55px;
    font-size: 15px;
    margin: 0;
    text-align: center; }
     
     
    .hauteur{
     
    height:30px;
    }

  2. #2
    Expert éminent

    Homme Profil pro
    Inscrit en
    Janvier 2007
    Messages
    13 474
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Isère (Rhône Alpes)

    Informations professionnelles :
    Secteur : Finance

    Informations forums :
    Inscription : Janvier 2007
    Messages : 13 474
    Par défaut
    Bonjour,
    déjà il faudrait re-contrôler la structure de tes <tables> : tu ne peux rien mettre en dehors des <td></td> (même pas un <br>), et il te manque des balises fermantes.

    Ensuite, si ta "fenêtre" (un div, pour être clair) disparait alors que tu n'en as pas modifié les caractéristiques, il faut chercher ailleurs : au niveau de ses éléments parents, par exemple ...
    Ne sont-il pas masqués à la suite d'une de tes modif ?
    De même ton div est-il assez "grand" pour contenir la table qu'il contient ?
    Tu définis les tailles explicitement à différents niveaux, ce qui pourrait poser des problème de "cadrage" du contenu ...

    A+

Discussions similaires

  1. problème avec les positions de mes bouttons
    Par el kantara dans le forum Interfaces Graphiques en Java
    Réponses: 3
    Dernier message: 27/05/2013, 22h54
  2. Safari problème avec hash et position fixed
    Par Bill_Bob dans le forum Mise en page CSS
    Réponses: 2
    Dernier message: 16/05/2011, 18h30
  3. [CSS 2.1] Problème avec position: fixed; lorsque la fenetre est redimensionnée
    Par chok371 dans le forum Mise en page CSS
    Réponses: 2
    Dernier message: 23/07/2010, 12h30
  4. Problème avec position d'image dans un while()
    Par damigr dans le forum Langage
    Réponses: 1
    Dernier message: 08/04/2008, 01h46
  5. Problème avec la mémoire virtuelle
    Par Anonymous dans le forum CORBA
    Réponses: 13
    Dernier message: 16/04/2002, 17h10

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo