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 :

Mon image de fond est au dessus de mon texte


Sujet :

Positionnement en CSS avec z-index

  1. #1
    Membre régulier
    Homme Profil pro
    Inscrit en
    Février 2009
    Messages
    110
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Février 2009
    Messages : 110
    Points : 71
    Points
    71
    Par défaut Mon image de fond est au dessus de mon texte
    Bonsoir,
    je vous prie de bien vouloir m'excuser pour ce dérangement tardif.
    je ne parviens pas à ordonner mon design.
    http://www.silo.heb3.org
    je vous montre le code (il est dans un fichier 'menu.php' que j'inclus au 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
    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
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict //EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" >
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
    	<head>
    		<title> Le Site de la manifestation de l'AMOUR DIVIN ! </title>
    		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    		<style type="text/css">
                    
    body
    {
       width: 760px;
       margin: 144px;
       margin-top: 20px;
       margin-bottom: 20px; 
       z-index: 2;
    }
     
    #image
    {
       width: 100%;
       height: 100%;
       z-index: 1;
    }
    /* L'en-tête */
     
    #en_tete
    {
       width: 760px;
       height: 150px;
       background-image: url("silo.png");
       background-repeat: repeat;
       margin-bottom: 1px;
    }
     
     
    /* Le menu */
     
    #menu
    {
       float: left;
       width: 120px;
       background-image: url ("chute.png");
       list-style-type: none;
       
    }
     
    .element_menu
    {
       background-color: #626262;
       background-image: url("image/chute.png");
       background-repeat: no-repeat;
       liste-style-decoration: none;
     
       border: 2px solid black;
       
       margin-bottom: 20px;
    }
     
     
    /* Quelques effets sur les menus */
     
     
    .element_menu h3
    {    
       color: #B3B3B3;
       font-family: Arial, "Arial Black", "Times New Roman", Times, serif;
       text-align: center;
    }
     
    #menu ul
    {
       list-style-aligne: none;
       padding: 0px;
       padding-left: 20px;
       margin: 0px;
       margin-bottom: 5px;
    }
     
    #menu a
    {
       color: #B3B3B3;
    }
     
    #menu a:hover
    {
       background-color: #B3B3B3;
       color: black;
    }
     
     
    /* Le corps de la page */
     
    #corps
    {
       margin-left: 140px;
       margin-bottom: 20px;
       padding: 5px;
       
       color: black;
       background-image:url("ciel2.png");
       background-repeat: no-repeat;
       
       border: 2px solid black;
    }
     
    #corps h1
    {
       color: #B3B3B3;
       text-align: center;
       font-family: Arial, "Arial Black", "Times New Roman", Times, serif;
    }
     
    #corps h2
    {
       height: 30px;
     
       background-image: url("images/titre.png");
       background-repeat: no-repeat;
       
       padding-left: 30px;
       color: #B3B3B3;
       text-align: left;
    }
     
     
    /* Le pied de page (qui se trouve tout en bas, en général pour les copyrights) */
     
    #pied_de_page
    {
       padding: 10px;
     
       text-align: center;
     
       color: #B3B3B3;
       background-color: #626262;
       background-image: url("image/mer2.jpg");
       background-repeat: repeat;
       
       border: 1px solid black;
    }
     
    /* formulaire */
    #form
    {
            width: 60%;
    }
     
    #form p
    {
            margin: 2px 0;
    }
     
    /* fieldset , legend */
    #form fieldset
    {
            margin-bottom: 10px;
            border: #CCC 1px solid;
    }
     
    #form fieldset:hover
    {
            background-color: #66CC33;
    }
     
    #form fieldset legend
    {
            padding: 0 10px;
            border-left: #CCC 1px solid;
            border-right: #CCC 1px solid;
            font-size: 1.2em;
            color:#00ffjj;
    }
     
    /* Label */
    #form label
    {
            background-color: #FFCC66;
            display: block;
            width: 25%;
            float: left;
            padding-right: 1%;
            text-align: right;
            letter-spacing: 1px;
    }
     
    #form label:hover
    {
            font-weight: bold;
    }
     
    #form .form_label_nostyle
    {
            background: none;
    }
     
    * Input */
    #form input, #form select
    {
            margin-left: 1%;
            width: 58%;
            border: #CCC 1px solid;
    }
     
    #form input:hover, #form select:hover, #form input:focus, #form select:focus
    {
            border: #999 1px solid;
            background-color: #DDEEFF;
    }
     
    /* Textarea */
    #form textarea
    {
            background-color: white;
            margin-bottom: 2px;
            margin-padding: 2px;
    }
     
     
    /* button submit */
    #form input[type="submit"]
    {
            border: #DDEEFF 1px solid;
            width: 27%;
    }
     
    #form input[type="submit"]:hover
    {
            background-color: #66CC33;
            cursor: pointer;
    }
     
    #form input[type="reset"]
    {
            border: #DDEEFF 1px solid;
            width: 27%;
    }
     
    #form input[type="reset"]:hover
    {
            background-color: #E6484D;
            cursor: pointer;
    }
            </style>
    	</head>
    		<body>
                    <p>
                    <div id="image"> 
                    <img src="fond.png" alt="un village" />
                    </div>
                    </p>
    			<div id="en_tete">
     
    			</div>
    			<div id="menu">
    				<ul>
    				<li>
    					<a href ="accueil.php"> Accueil </a>
    				</li>
    				<li>
    					<a href="qui_sommes_nous.php')"> A propos </a>
    				</li>
    				<li>
    					<a href="notre_vision.php"> Notre Vision </a>
    				</li>
    				<li>
    					<a href="nos_projets.php"> Nos projets </a>
    				</li>
    				<li>
    					<a href="index.php"> Exhortation </a>
    				</li>
    				<li> 
    					<a href="javascript:alert('site en construction');"> Partenariat </a>
    				</li>
    				<li>	
    					<a href="formulaire.php"> Contact</a>
    				</li>
    			</ul>
    			</div>
    			<div id="corps">

    Excusez moi si je mets directement mon code ici, je ne vois pas les balises d'introduction de code.
    merci

  2. #2
    Nouveau membre du Club
    Femme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2008
    Messages
    22
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Maroc

    Informations professionnelles :
    Activité : Ingénieur développement logiciels

    Informations forums :
    Inscription : Avril 2008
    Messages : 22
    Points : 29
    Points
    29
    Par défaut
    Bonjour,

    si le fond cache le texte tu précise au div du text le paramètre "position" :

    position: absolute;

    a+

Discussions similaires

  1. mon image de fond en backgroun-image ne s'affiche pas
    Par ertyup dans le forum Mise en page CSS
    Réponses: 8
    Dernier message: 06/09/2010, 16h38
  2. [CSS 2] appliquer un bandeau sur mon image de fond sur 2 Div
    Par Remus91 dans le forum Mise en page CSS
    Réponses: 2
    Dernier message: 20/08/2009, 15h45
  3. Insertion d'une vidéo qui s'affiche sous mon image de fond
    Par The_TooNZ dans le forum Balisage (X)HTML et validation W3C
    Réponses: 7
    Dernier message: 21/01/2009, 16h25
  4. Jlabel sur une image de fond est ce possible?
    Par jlassiramzy dans le forum AWT/Swing
    Réponses: 1
    Dernier message: 04/05/2007, 12h29
  5. [Swing]Image en fond de JFrame+ objets par dessus
    Par matt92700 dans le forum Agents de placement/Fenêtres
    Réponses: 6
    Dernier message: 16/01/2006, 15h12

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