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 :

Forcer le passage à la ligne d'un texte sans espace


Sujet :

Tableau en CSS

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre éclairé Avatar de fazpedro
    Homme Profil pro
    Inscrit en
    Août 2009
    Messages
    506
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Août 2009
    Messages : 506
    Par défaut Forcer le passage à la ligne d'un texte sans espace
    Bonjour

    j'ai un code PHP dont le résultat "caché" (si on passe la souris la description s'affiche) déborde si la fenêtre du navigateur n'est pas agrandie au maximum
    (c'est à dire que la barre de défilement en bas apparaît...)

    je souhaite que le texte (en div class="cache" ) ne déborde pas et qu'il passe à la ligne en automatique.
    Merci.


    ma feuille de style CSS :
    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
    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
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    /*  description non cachée pour les évènements */
    .autre .cache {
    display:none;
    }
    /*  description cachée pour les évènements */
    .autre:hover .cache {
    display:block;
    font : 100% Georgia, Arial, Helvetica, sans-serif;
    background-color : #EAEAAE;
    }
    body {
    background-image: url(Faz_fond.JPG);
    font : 100% Georgia, Arial, Helvetica, sans-serif;
    text-align : left;
    }
    body.a {
    font : 100% Georgia, Arial, Helvetica, sans-serif;
    text-align : left;
    }
    body.p {
    font : 100% Georgia, Arial, Helvetica, sans-serif;
    text-align : left;
    }
     
    #en_tete { /* en tête avec image en haut */
    background-repeat : no-repeat;
    background-position : left top;
    margin : 1%;
    text-align : center;
    }
    h1 {
    font-size : 120%;
    font-family : Georgia, Arial, Helvetica, sans-serif;
    text-align : left;
    color : #ff6600;
    }
    h2 {
    font-size : 110%;
    font-family : Georgia, Arial, Helvetica, sans-serif;
    text-align : left;
    color : #ff6600;
    }
    h3 {
    font-size : 105%;
    font-family : Georgia, Arial, Helvetica, sans-serif;
    text-align : left;
    display:inline-block;
    background : #7FFFD4;
    color : #228B22;
    }
    h4 {
    font-size : 90%;
    font-family : Georgia, Arial, Helvetica, sans-serif;
    text-align : left;
    color : #7F00FF;
    }
    #mainContent { /* contenu principal */
    margin: auto;
    width : 100%;
    font-size : 100%;
    font-family : Georgia, Arial, Helvetica, sans-serif;
    text-align : left;
    }
    #footer { /* bas de page */
    margin : 5%;
    text-align : left;
    clear : both;
    }
     
    /* essai de MENU pour les smartphones
    #tabnav li {
    font-size : 100%;
    float:left;
    width:100%;
    display : block;
    list-style-type : none;
    position:relative;
    /* z-index:1;  position du bloc */
    /* padding:8px 0 7px; */
    padding : 1%;
    background : #eaeaae;
    color : #7b9;
    margin : 1%;
    border:1% solid #999;
    overflow:auto; /* débordement du contenu */
    /* -moz-border-radius:3px;
    -webkit-border-radius:3px;
    border-radius:3px; */
    -moz-border-radius:10%; /* arrondi des bordures */
    -webkit-border-radius:10%; /* arrondi des bordures */
    border-radius:10%; /* arrondi des bordures */
    border: 5% solid #fff; 
    -moz-box-shadow: 8px 8px 12px #aaa;  
    -webkit-box-shadow: 8px 8px 12px #aaa;  
    box-shadow: 8px 8px 12px #555;  
    text-indent:1%; /* décalage par rapport au bord gauche */
    /* [if lte IE 8] */
    filter:progid:DXImageTransform.Microsoft.Shadow(color='#aaaaaa', Direction=135, Strength=12); 
    zoom: 1; 
    }
    essai de MENU pour les smartphones */
     
    /* MENU pour les PC fixes et portables  */
    #tabnav { /* bandeau de MENU */
    display : inline;
    margin : 1%;
    padding : 0% 1% 0% 1%;
    float: left;
    }
    #tabnav li {
    background : #eaeaae;
    margin : 0%;
    padding : 0%;
    text-align : left;
    display:inline;
    list-style-type : none;
    } 
    /* fin de MENU pour les PC fixes et portables  */
    #tabnav a:link, #tabnav a:visited {
    font-size : 100%;
    font-weight : bold;
    margin : 1% 1% 1% 1%;
    text-decoration : none;
    text-align : left;
    color : #7b9;
    }
    #tabnav li.active a:link, #tabnav li.active a:visited, #tabnav a:hover {
    font-size : 100%;
    border-bottom : solid #696;
    background : #ffffff;
    text-align : left;
    color : #485;
    }
     
    form  {
    	margin: 0%;
    	clear: both;   /* pour se positionner en-dessous du bloc précédent */
    }
     
    /* pour les smartphones
    fieldset {
    	background-image: url(Faz_fond2.JPG);
    	/* text-align: right;
    	display: block; */
    	padding : 1%;
    	margin-bottom : 1%;
    	width : 95%;
    }
    */
     /*
    form label {
    	float: left;
    	text-align: right;
    }
    legend {
    	text-align: left;
    	color : #a0522d;
    	font-size : 100%;
    	font-family : Arial Black, Helvetica, sans-serif;
    	background : #edd;
    }
    fin pour les smartphones */
     
    /* classique */
    fieldset {
    	background-image: url(Faz_fond2.JPG);
    	text-align: right;
    	display: block;
    	padding : 1%;
    	margin-bottom : 1%;
    	width : 90%;
    }
    form label {
    	float: left;
    	text-align: right;
    }
    legend {
    	color : #a0522d;
    	font-size : 90%;
    	font-family : Arial Black, Helvetica, sans-serif;
    	background : #edd;
    }
    /* fin de classique */
     
     
    /* pour les boutons d'envoi */
    input[type="submit"], input[type="reset"] {
    	font-weight : bold;
    	cursor : pointer;
    }
    input[type="submit"]:hover, input[type="reset"]:hover {
    	background-color : white;
    }
    input[type="submit"]:active, input[type="reset"]:active {
    	background-color : #a6bede;
    	color : black;
    }
     
    input {
    	background-color : #a9b8de;
    	border-top : none;
    	font-family : Georgia, "Times New Roman", Times, serif;
    	color : #202020;
    }
    select {
    	background-color : #a9b8de;
    	border-top : none;
    	font-family : Georgia, "Times New Roman", Times, serif;
    	color : #202020;
    }
    select.ev_focus{
    height : 70%;
    width: 93%; 
    background : #edd;
    padding : 1% 0% 1% 0%;
    }
    select.ev {
    height : 70%;
    width: 93%; 
    padding : 1% 0% 1% 0%;
    }
     
    textarea {
    	height : 500%;
    	width: 93%;
    	background-color : #a9b8de;
    	border-top : none;
    	float: left;
    	padding : 1% 0% 1% 0%;
    	font-family : Georgia, "Times New Roman", Times, serif;
    	color : #202020;
    }
    textarea.ev  {
    	height : 500%;
    	width: 93%;
    	padding : 1% 0% 1% 0%;
    }
    input.textarea_focus, select.textarea_focus, textarea.textarea_focus {
    	height : 500%;
    	width: 93%;
    	float: left;
    	background : #edd;
    	padding : 1% 0% 1% 0%;
    }
    input.ev {
    height : 70%;
    width: 93%; 
    padding : 1% 0% 1% 0%;
    }
    input.ev_focus {
    height : 70%;
    width: 93%; 
    padding : 1% 0% 1% 0%;
    background : #edd;
    }
     
    select.jj {
    height : 70%;
    width: 93%; 
    padding : 1% 0% 1% 0%;
    }
    select.jj_focus, input.jj_focus, {
    height : 70%;
    width: 93%; 
    background : #edd;
    }
     
    select.mm {
    height : 70%;
    width: 93%; 
    padding : 1% 0% 1% 0%;
    }
    select.mm_focus, input.mm_focus {
    height : 70%;
    width: 93%; 
    background : #edd;
    padding : 1% 0% 1% 0%;
    }
     
    .recherche { /* pour la newsletter */
    color : #a0522d;
    font-size : 90%;
    font-family : Arial Black, Helvetica, sans-serif;
    background : #edd;
    }
    #idSelect { /* pour Tarif Gratuit */
    height : 70%;
    width: 93%; 
    padding : 1% 0% 1% 0%;
    }
    #idInput { /* pour Tarif Payant */
    height : 70%;
    width: 93%; 
    padding : 1% 0% 1% 0%;
    }

  2. #2
    Membre émérite Avatar de fallais
    Homme Profil pro
    Ingénieur systèmes et réseaux
    Inscrit en
    Juillet 2006
    Messages
    858
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur systèmes et réseaux

    Informations forums :
    Inscription : Juillet 2006
    Messages : 858
    Par défaut
    Impossible de trouver le bout de code qui t'interesse, essaye de réduire la taille du code que tu nous postes.
    Néanmoins, j'ai cru voir un overflow: auto;
    Essaye de changer en overflow: hidden;

  3. #3
    Rédacteur

    Avatar de Bovino
    Homme Profil pro
    Développeur Web
    Inscrit en
    Juin 2008
    Messages
    23 647
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 55
    Localisation : France, Gironde (Aquitaine)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Juin 2008
    Messages : 23 647
    Billets dans le blog
    20
    Par défaut
    Citation Envoyé par Elwyn
    Impossible de trouver le bout de code qui t'interesse, essaye de réduire la taille du code que tu nous postes.
    Essaye surtout d'appliquer Les règles incontournables d'utilisation de ce forum et de poster le code généré, pas le PHP !
    Pas de question technique par MP !
    Tout le monde peut participer à developpez.com, vous avez une idée, contactez-moi !
    Mes formations video2brain : La formation complète sur JavaScriptJavaScript et le DOM par la pratiquePHP 5 et MySQL : les fondamentaux
    Mon livre sur jQuery
    Module Firefox / Chrome d'intégration de JSFiddle et CodePen sur le forum

  4. #4
    Membre à l'essai
    Homme Profil pro
    Étudiant
    Inscrit en
    Juillet 2011
    Messages
    5
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Juillet 2011
    Messages : 5
    Par défaut
    Bonjour,

    Le CSS peut répondre à ton besoin :

    Les propriétés suivantes :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
     
     
    .cache {
     
       /* Permet de gérer la barre déroulante */
       overflow :  hidden       /* attribut qui cachera ce qui depasse */
                   auto         /* attribut qui affichera la barre deroulante si necessaire */
                   scroll       /* attribut qui affichera tout le temps la barre deroulante */
     
    }
    Ces trois attributs d'overflow vont pouvoir t'aider pour la barre deroulante. Mais pas pour le débordement. Il est du au positionnement de ton élément.

    Essaye :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
     
    .cache {
       height : ...px;                    /* Pour préciser la hauteur */
       width :  ...px;                    /* Pour préciser la largeur */
       position : absolute (ou relative); /* Pour indiquer que l'element devra se trouver à cette place */
       margin : ..px ..px ..px ..px;      /* Pour préciser l'emplacement de l'élément par rapport à son élément parent */
    }
    Ces attributs devraient te permettre de ne plus avoir la scrollbar horizontale. Joue avec les paramètres pour positionner ton élément, et le délimiter.

    De plus, placer le texte qui doit être caché dans une balise "p" te permettra de ne pas gérer les sauts de lignes, si tu lui précise la largeur

  5. #5
    Membre éclairé Avatar de fazpedro
    Homme Profil pro
    Inscrit en
    Août 2009
    Messages
    506
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Août 2009
    Messages : 506
    Par défaut
    Désolé d'avoir mis du PHP...
    Merci d'avance de votre aide.

    Voici le code HTML généré :
    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
    <!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" lang="fr">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">	
    <title>MON SITE</title>
    <link rel="stylesheet" type="text/css" href="style.css">
    </head>
    <body>
    <div id="haut">
    		<div id="en_tete">
    		<a href="index.php"><img src="image.jpg" alt="image du site" title="Perdu?"></a>
    		<h1> Le site des sorties culturelles.... </h1>
    		</div>
    		<ul id="tabnav">
    			<li><a href="index.php">Accueil</a></li>
    			<li><a href="agenda.php">Recherche_Agenda</a></li>
    			<li><a href="liens.php">Liens</a></li>
    			<li><a href="contact.php">Nous contacter</a></li>
    			<li><a href="newsletter.php">Newsletter</a></li>
    			<li><a href="accueil_membre_ok.php">Espace membres</a></li>
    		</ul>
    <p>
    </p>
    </div>
     <div id="mainContent">
    <b>Concert</b>
    <br />
    <b>Du Vendredi 01 Juillet 2011</b>
    <b>Au Lundi 01 Août 2011</b>
    <br />
    <div class="autre">
    <span style="color:#8E236B;"><strong>Artiste_Test</strong></span>
    <br />
     
    <div class="cache">
    <strong>Test_description.....Test_description</strong>
    </div>
     
    </div> <!-- class autre -->
     
    </div> <!-- class mainContent -->
     
    <br />
    <a href="javascript:window.history.go(-1)">Retour</a>
    <div id="footer">
    <p></p>
    <p><a href="#haut">Haut de page</a></p>
    <p><br></p>
    <p>© mon site 2011</p>
    </div>
    </body>
    </html>
    et ma feuille de style :
    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
    224
    225
    226
    227
    228
    229
    230
    231
    /*  description non cachée pour les évènements */
    .autre .cache {
    display:none;
    }
    /*  description cachée pour les évènements */
    .autre:hover .cache {
    display:block;
    font : 100% Georgia, Arial, Helvetica, sans-serif;
    background-color : #EAEAAE;
    padding : 0% 1% 0% 1%;
    }
    body {
    background-image: url(Faz_fond.JPG);
    font : 100% Georgia, Arial, Helvetica, sans-serif;
    text-align : left;
    }
    body.a {
    font : 100% Georgia, Arial, Helvetica, sans-serif;
    text-align : left;
    }
    body.p {
    font : 100% Georgia, Arial, Helvetica, sans-serif;
    text-align : left;
    }
     
    #en_tete { /* en tête avec image en haut */
    background-repeat : no-repeat;
    background-position : left top;
    margin : 1%;
    text-align : center;
    }
    h1 {
    font-size : 120%;
    font-family : Georgia, Arial, Helvetica, sans-serif;
    text-align : left;
    color : #ff6600;
    }
    h2 {
    font-size : 110%;
    font-family : Georgia, Arial, Helvetica, sans-serif;
    text-align : left;
    color : #ff6600;
    }
    h3 {
    font-size : 105%;
    font-family : Georgia, Arial, Helvetica, sans-serif;
    text-align : left;
    display:inline-block;
    background : #7FFFD4;
    color : #228B22;
    }
    h4 {
    font-size : 90%;
    font-family : Georgia, Arial, Helvetica, sans-serif;
    text-align : left;
    color : #7F00FF;
    }
    #mainContent { /* contenu principal */
    margin: auto;
    width : 100%;
    font-size : 100%;
    font-family : Georgia, Arial, Helvetica, sans-serif;
    text-align : left;
    }
    #footer { /* bas de page */
    margin : 5%;
    text-align : left;
    clear : both;
    }
     
    #tabnav { /* bandeau de MENU */
    display : inline;
    margin : 1%;
    padding : 0% 1% 0% 1%;
    float: left;
    }
    #tabnav li {
    background : #eaeaae;
    margin : 0%;
    padding : 0%;
    text-align : left;
    display:inline;
    list-style-type : none;
    } 
    #tabnav a:link, #tabnav a:visited {
    font-size : 100%;
    font-weight : bold;
    margin : 1% 1% 1% 1%;
    text-decoration : none;
    text-align : left;
    color : #7b9;
    }
    #tabnav li.active a:link, #tabnav li.active a:visited, #tabnav a:hover {
    font-size : 100%;
    border-bottom : solid #696;
    background : #ffffff;
    text-align : left;
    color : #485;
    }
     
    /* pour les formulaires */
    form  {
    	margin: 0%;
    	clear: both;   /* pour se positionner en-dessous du bloc précédent */
    }
    fieldset {
    	background-image: url(Faz_fond2.JPG);
    	text-align: right;
    	display: block;
    	padding : 1%;
    	margin-bottom : 1%;
    	width : 90%;
    }
    form label {
    	float: left;
    	text-align: right;
    }
    legend {
    	color : #a0522d;
    	font-size : 90%;
    	font-family : Arial Black, Helvetica, sans-serif;
    	background : #edd;
    }
     
     
    /* pour les boutons d'envoi */
    input[type="submit"], input[type="reset"] {
    	font-weight : bold;
    	cursor : pointer;
    }
    input[type="submit"]:hover, input[type="reset"]:hover {
    	background-color : white;
    }
    input[type="submit"]:active, input[type="reset"]:active {
    	background-color : #a6bede;
    	color : black;
    }
     
    input {
    	background-color : #a9b8de;
    	border-top : none;
    	font-family : Georgia, "Times New Roman", Times, serif;
    	color : #202020;
    }
    select {
    	background-color : #a9b8de;
    	border-top : none;
    	font-family : Georgia, "Times New Roman", Times, serif;
    	color : #202020;
    }
    select.ev_focus{
    height : 70%;
    width: 93%; 
    background : #edd;
    padding : 1% 0% 1% 0%;
    }
    select.ev {
    height : 70%;
    width: 93%; 
    padding : 1% 0% 1% 0%;
    }
    textarea {
    	height : 500%;
    	width: 93%;
    	background-color : #a9b8de;
    	border-top : none;
    	float: left;
    	padding : 1% 0% 1% 0%;
    	font-family : Georgia, "Times New Roman", Times, serif;
    	color : #202020;
    }
    textarea.ev  {
    	height : 500%;
    	width: 93%;
    	padding : 1% 0% 1% 0%;
    }
    input.textarea_focus, select.textarea_focus, textarea.textarea_focus {
    	height : 500%;
    	width: 93%;
    	float: left;
    	background : #edd;
    	padding : 1% 0% 1% 0%;
    }
    input.ev {
    height : 70%;
    width: 93%; 
    padding : 1% 0% 1% 0%;
    }
    input.ev_focus {
    height : 70%;
    width: 93%; 
    padding : 1% 0% 1% 0%;
    background : #edd;
    }
    select.jj {
    height : 70%;
    width: 93%; 
    padding : 1% 0% 1% 0%;
    }
    select.jj_focus, input.jj_focus {
    height : 70%;
    width: 93%; 
    background : #edd;
    }
    select.mm {
    height : 70%;
    width: 93%; 
    padding : 1% 0% 1% 0%;
    }
    select.mm_focus, input.mm_focus {
    height : 70%;
    width: 93%; 
    background : #edd;
    padding : 1% 0% 1% 0%;
    }
    .recherche { /* pour la newsletter */
    color : #a0522d;
    font-size : 90%;
    font-family : Arial Black, Helvetica, sans-serif;
    background : #edd;
    }
    #idSelect { /* pour Tarif Gratuit */
    height : 70%;
    width: 93%; 
    padding : 1% 0% 1% 0%;
    }
    #idInput { /* pour Tarif Payant */
    height : 70%;
    width: 93%; 
    padding : 1% 0% 1% 0%;
    }

  6. #6
    Membre à l'essai
    Homme Profil pro
    Étudiant
    Inscrit en
    Juillet 2011
    Messages
    5
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Juillet 2011
    Messages : 5
    Par défaut
    Tu as juste à ajouter ca dans ton CSS :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
     
    .cache {
    	position:absolute;
    }
    Cela placera ton "<div class="cache">...</div>" au premier plan du site.
    Il surpassera le reste egalement. Mais avec une bonne mise en forme (largeur + hauteur), tu devrais réussir à le positionner.

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. [XSLT 1.0] supprimer passage à la ligne en sortie texte
    Par bdiffo dans le forum XSL/XSLT/XPATH
    Réponses: 2
    Dernier message: 21/02/2011, 16h58
  2. passage à la ligne dans fonction text
    Par tubaas dans le forum MATLAB
    Réponses: 4
    Dernier message: 01/02/2010, 12h04
  3. Réponses: 2
    Dernier message: 17/01/2008, 10h36
  4. Texte sans espace dans un espace defini
    Par beekeep dans le forum Balisage (X)HTML et validation W3C
    Réponses: 4
    Dernier message: 02/10/2007, 14h51
  5. Réponses: 9
    Dernier message: 15/05/2006, 14h29

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