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 25/07/2011, 15h26   #1
Membre du Club
 
Avatar de fazpedro
 
Homme
Inscription : août 2009
Messages : 360
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : France

Informations forums :
Inscription : août 2009
Messages : 360
Points : 64
Points : 64
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 :
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%;
}
fazpedro est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 25/07/2011, 15h43   #2
Membre chevronné
 
Avatar de Elwyn
 
Homme
Ingénieur systèmes et réseaux
Inscription : juillet 2006
Messages : 836
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 : 836
Points : 712
Points : 712
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;
__________________
Dire Straits, Bob Dylan, Led Zeppelin, the Who, Pink Floyd, AC/DC, Guns & Roses, the Doors, ...
Elwyn est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 25/07/2011, 15h48   #3
Responsable Développement Web

 
Avatar de Bovino
 
Homme Didier Mouronval
Développeur Web
Inscription : juin 2008
Messages : 13 807
Détails du profil
Informations personnelles :
Nom : Homme Didier Mouronval
Âge : 41
Localisation : France, Gironde (Aquitaine)

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

Informations forums :
Inscription : juin 2008
Messages : 13 807
Points : 35 797
Points : 35 797
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 !
Vous possédez un blog et aimeriez diffuser vos billets sur le forum, 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
Bovino est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 25/07/2011, 16h15   #4
Invité régulier
 
Homme Mickael
Étudiant
Inscription : juillet 2011
Messages : 5
Détails du profil
Informations personnelles :
Nom : Homme Mickael
Localisation : France

Informations professionnelles :
Activité : Étudiant

Informations forums :
Inscription : juillet 2011
Messages : 5
Points : 6
Points : 6
Bonjour,

Le CSS peut répondre à ton besoin :

Les propriétés suivantes :

Code :
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 :
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
Renegad666 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 26/07/2011, 11h42   #5
Membre du Club
 
Avatar de fazpedro
 
Homme
Inscription : août 2009
Messages : 360
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : France

Informations forums :
Inscription : août 2009
Messages : 360
Points : 64
Points : 64
Désolé d'avoir mis du PHP...
Merci d'avance de votre aide.

Voici le code HTML généré :
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
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 :
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%;
}
fazpedro est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 26/07/2011, 11h56   #6
Invité régulier
 
Homme Mickael
Étudiant
Inscription : juillet 2011
Messages : 5
Détails du profil
Informations personnelles :
Nom : Homme Mickael
Localisation : France

Informations professionnelles :
Activité : Étudiant

Informations forums :
Inscription : juillet 2011
Messages : 5
Points : 6
Points : 6
Tu as juste à ajouter ca dans ton CSS :

Code :
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.
Renegad666 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 26/07/2011, 13h12   #7
Membre du Club
 
Avatar de fazpedro
 
Homme
Inscription : août 2009
Messages : 360
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : France

Informations forums :
Inscription : août 2009
Messages : 360
Points : 64
Points : 64
@ Renegad666 :

le "position:absolute;" ne change rien...
fazpedro est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 26/07/2011, 14h20   #8
Modératrice
 
Avatar de Candygirl
 
Femme
Inscription : juillet 2006
Messages : 1 529
Détails du profil
Informations personnelles :
Sexe : Femme
Âge : 40
Localisation : Suisse

Informations forums :
Inscription : juillet 2006
Messages : 1 529
Points : 1 869
Points : 1 869
Hello,

Tu devrais peut-être mettre un espace dans ton texte pour qu'il puisse passer à la ligne
Citation:
Test_description..... Test_description
et non pas
Citation:
Test_description.....Test_description
__________________
Les bons réflexes:
  • avant de poser une question:
    règles | faq | tutoriels | recherche
  • clarté, politesse, vocabulaire et orthographe soignés = efficacité
  • remercier ceux qui ont pris le temps d'aider et si c'est le cas
Candygirl est actuellement connecté   Envoyer un message privé Réponse avec citation 00
Vieux 28/07/2011, 21h50   #9
Membre du Club
 
Avatar de fazpedro
 
Homme
Inscription : août 2009
Messages : 360
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : France

Informations forums :
Inscription : août 2009
Messages : 360
Points : 64
Points : 64
@ Candygirl :
le texte vient d'une saisie d'un formulaire et il peut contenir ou non des espaces...

j'ai essayé de modifier un peu mais j'ai toujours le même souci de débordement...
merci de votre aide.

le code HTML généré :
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
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.jpeg" alt="image du site" title="Perdu?"></a>
<h1> Le site des sorties culturelles....</h1>
</div>
<ul id="tabnav">
	<li class="lienactif">
	<a href="index.php">Accueil</a></li>
	<li class="lienclassique">
	<a href="agenda.php">Recherche_Agenda</a></li>
	<li class="lienclassique">
	<a href="liens.php">Liens</a></li>
	<li class="lienclassique">
	<a href="contact.php">Nous contacter</a></li>
	<li class="lienclassique">
	<a href="newsletter.php">Newsletter</a></li>
	<li class="lienclassique">
	<a href="accueil_membre_ok.php">Espace membres</a></li>
	</ul>
<p></p>
</div>
<br><br><br>
 <!-- insère le bandeau principal en haut en fonction de la connexion -->
<div id="mainContent">
<br><h3>A la une</h3><br><b>Retrouvez tous les nouveaux événements de ce jour</b>
<br>Aujourd'hui&nbsp;<b>Jeudi 28 Juillet 2011&nbsp;&nbsp;</b><br><p><b>Aucun événement ! </b></p>
<br><br><a href="#haut">Haut de page</a><br><h3>Cette semaine</h3><br>
<b>Retrouvez tous les nouveaux événements des 7 prochains jours</b><br><p>Du <b>
	Vendredi 29 Juillet 2011&nbsp;&nbsp;</b>Au <b>Vendredi 05 Août 2011&nbsp;&nbsp;</b></p><p></p>
	<p><br><b>Spectacle   </b><br>     Bar   <b>     lundi 01 août 2011   </b>    Début à : 20h30
	Tarif : Gratuit         où ? Lieu_Test   <br></p>
	<div class="autre"><span style="color:#8E236B;">Artiste_Test</span><br>
	<div class="cache">Test_description.....Test_description..</div></div>mis en ligne par moi
	</div>
	</div>
	 <!-- insère la recherche des news de la semaine -->
<div id="footer">
<p><br></p>
<p><br></p>
<p><a href="#haut">Haut de page</a></p>
<p><br></p>
<p>MON  SITE 2011</p>
</div>
 <!-- insère le bas de page  -->
</div></body></html>
et le style CSS modifié :
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
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
/*  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%;
width : 80%;
}
body {
background-image: url(Faz_fond.JPG);
font : 100% Georgia, Arial, Helvetica, sans-serif;
text-align : left;
}
#en_tete { /* en tête avec image en haut */
margin : 1%;
text-align : left;
}
h1 {
font-size : 110%;
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 : 90%;
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 */
font-size : 90%;
display : inline;
margin : 1%;
padding : 0% 1% 0% 1%;
float: left;
}
#tabnav li {
font-size : 90%;
margin : 0%;
padding : 0%;
text-align : left;
display:inline;
list-style-type : none;
} 
 
/* pour onglet sélectionné */
#tabnav .lienclassique { }
#tabnav .lienactif {
font-size : 120%;
font-weight : bold;
border-bottom : double 2px;
}
 
#tabnav a:link, #tabnav a:visited {
font-size : 120%;
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 : 120%;
border-bottom : double 2px;
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%;
}
 
/* DEBUT style pour autocomplete */
/*.center{
	text-align:center;} */
a.lien {
color:#2193BD;
font-weight:bold;
font-size:1.2em;
text-decoration:underline;}
a.lien:hover {
color:#333;}
hr{
	clear: both;
	display: block;
	visibility: hidden;
	height: 1px;}
/****	STYLES DE LA BOITE DE SUGGESTION ****/
.suggestionsBox {
	position: absolute;
	left: 30px;
	margin: 10px 0px 0px 0px;
	width: 200px;
	background-color: #212427;
	-moz-border-radius: 7px;
	-webkit-border-radius: 7px;
	border: 2px solid #000;	
	color: #fff;	}
	.suggestionList {
		margin: 0px;
		padding: 0px;
	}
	.suggestionList li {
		margin: 0px 0px 3px 0px;
		padding: 3px;
		cursor: pointer;
		list-style:none;
	}
	.suggestionList li:hover {
		background-color: #ffa800;
		color:#000;
	}
/* FIN style pour autocomplete */
fazpedro est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 28/07/2011, 23h02   #10
Modérateur
 
Avatar de NoSmoking
 
Homme
Inscription : janvier 2011
Messages : 2 944
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : France, Isère (Rhône Alpes)

Informations forums :
Inscription : janvier 2011
Messages : 2 944
Points : 4 776
Points : 4 776
Bonsoir,
Citation:
je souhaite que le texte (en div class="cache" ) ne déborde pas et qu'il passe à la ligne en automatique.
il existe word-wrap:break-worden CSS3, sinon voir Ajustement du contenu au contenant
NoSmoking est déconnecté   Envoyer un message privé Réponse avec citation 10
Vieux 29/07/2011, 21h58   #11
Membre du Club
 
Avatar de fazpedro
 
Homme
Inscription : août 2009
Messages : 360
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : France

Informations forums :
Inscription : août 2009
Messages : 360
Points : 64
Points : 64
@ NoSmoking :
avec word-wrap:break-word;
en fait cela fonctionne bien sur une page et pas sur une autre.. je deviens fou , je ne vois pas .. (je suis débutant..) il doit y avoir un truc simple que je n'ai pas vu ?
Merci...

style.css modifié :
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
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
/*  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%;
word-wrap:break-word;
overflow:hidden;
}
body {
background-image: url(Faz_fond.JPG);
font : 100% Georgia, Arial, Helvetica, sans-serif;
text-align : left;
}
#en_tete { /* en tête avec image en haut */
margin : 1%;
text-align : center;
}
h1 {
font-size : 110%;
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 */
font-size : 90%;
display : inline;
margin : 1%;
padding : 0% 1% 0% 1%;
float: left;
}
#tabnav li {
font-size : 90%;
margin : 0%;
padding : 0%;
text-align : left;
display:inline;
list-style-type : none;
} 
 
/* pour onglet sélectionné */
#tabnav .lienclassique { }
#tabnav .lienactif {
font-size : 120%;
font-weight : bold;
border-bottom : double 2px;
}
 
#tabnav a:link, #tabnav a:visited {
font-size : 120%;
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 : 120%;
border-bottom : double 2px;
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%;
}
 
/* DEBUT style pour autocomplete */
/*.center{
	text-align:center;} */
a.lien {
color:#2193BD;
font-weight:bold;
font-size:1.2em;
text-decoration:underline;}
a.lien:hover {
color:#333;}
hr{
	clear: both;
	display: block;
	visibility: hidden;
	height: 1px;}
/****	STYLES DE LA BOITE DE SUGGESTION ****/
.suggestionsBox {
	position: absolute;
	left: 30px;
	margin: 10px 0px 0px 0px;
	width: 200px;
	background-color: #212427;
	-moz-border-radius: 7px;
	-webkit-border-radius: 7px;
	border: 2px solid #000;	
	color: #fff;	}
	.suggestionList {
		margin: 0px;
		padding: 0px;
	}
	.suggestionList li {
		margin: 0px 0px 3px 0px;
		padding: 3px;
		cursor: pointer;
		list-style:none;
	}
	.suggestionList li:hover {
		background-color: #ffa800;
		color:#000;
	}
/* FIN style pour autocomplete */
page qui fonctionne bien :
Code html :
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
<!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.jpeg" alt="image du site" height="40px" width="100px" title="Perdu?" /></a>
 
		<h1> Le site des sorties culturelles.... </h1>
		</div>
	<ul id="tabnav">
		<li class="lienactif" >
		<a href="index.php">Accueil</a></li>
		<li class="lienclassique" >
		<a href="agenda.php">Recherche_Agenda</a></li>
 
		<li class="lienclassique" >
		<a href="liens.php">Liens</a></li>
		<li class="lienclassique" >
		<li><a href="contact.php">Nous contacter</a></li>
		<li class="lienclassique" >
		<li><a href="newsletter.php">Newsletter</a></li>
		<li class="lienclassique" >
 
		<li><a href="accueil_membre_ok.php">Espace membres</a></li>
	</ul>
<p></p>
</div>
<br /><br /><br />
 <!-- insère le bandeau principal en haut en fonction de la connexion -->
 
<div id="mainContent">
 
<p /><h3>A la une</h3><br /><b>Retrouvez tous les nouveaux &eacute;v&eacute;nements de ce jour</b>
<br />Aujourd'hui&nbsp;<b>Vendredi 29 Juillet 2011&nbsp;&nbsp;</b><br /><p><b>Aucun &eacute;v&eacute;nement ! </b>
</p><br></br><a href="#haut">Haut de page</a><br /><h3>Cette semaine</h3><br /><b>Retrouvez tous les nouveaux événements des 7 prochains jours
</b><br /><p />Du <b>Samedi 30 Juillet 2011&nbsp;&nbsp;</b>Au <b>Samedi 06 Août 2011&nbsp;&nbsp;</b><p /><p /><br /><b>
Spectacle   </b><br />     Bar   <b>     lundi 01 août 2011   </b>     Début à : 20h30     Tarif : Gratuit         où ? Lieu_Test   <br />
<div class="autre"><span style="color:#8E236B;">Artiste_Test</span><br /><div class="cache">Test_description.....Test_description
.....Test_mis en ligne par moi</div></div>
 
</div>
 
<div id="footer">
<p><br /></p>
<p><br /></p>
<p><a href="#haut">Haut de page</a></p>
<p><br /></p>
<p>MON SITE 2011</p>
</div>
 <!-- insère le bas de page  -->
 
</body>
 
</html>

page qui "déborde".. :
Code html :
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
<!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.jpeg" alt="image du site" title="Perdu?" height="40px" width="100px"></a>
		<h1> Le site des sorties culturelles .... </h1>
		</div>
	<ul id="tabnav">
		<li class="lienclassique">
		<a href="index.php">Accueil</a></li>
		<li class="lienclassique">
		<a href="agenda.php">Recherche_Agenda</a></li>
		<li class="lienclassique">
		<a href="liens.php">Liens</a></li>
		<li class="lienclassique">
		</li><li><a href="contact.php">Nous contacter</a></li>
		<li class="lienclassique">
		</li><li><a href="newsletter.php">Newsletter</a></li>
		<li class="lienclassique">
		</li><li><a href="accueil_membre_ok.php">Espace membres</a></li>
	</ul>
<p></p>
</div>
<br><br><br>
 <!-- insère le bandeau principal en haut en fonction de la connexion -->
<div id="mainContent">
<b>Concert</b><br><br>Du :  <b>Vendredi 01 Juillet 2011&nbsp;&nbsp;&nbsp;</b>Au : <b>
	Samedi 17 Septembre 2011</b><br><br><br><br><h3><b>   </b></h3><br>     Bar   <b>     lundi 01 août   </b>
	Début à : 21h00     Tarif : Gratuit        où ? La salle   <br>
	<br><div class="autre">
		<span style="color:#8E236B;">
			<strong>supertramp</strong>
			</span><br>
		<div class="cache"><strong>	Supertramp en concert ! mis en ligne par moi
		</strong></div></div><br /><a href="javascript:window.history.go(-1)">Retour</a>
<div id="footer">
<p><br></p>
<p><br></p>
<p><a href="#haut">Haut de page</a></p>
<p><br></p>
<p>MON SITE 2011</p>
</div>
 <!-- insère le bas de page  -->
</div></body></html>
fazpedro est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 30/07/2011, 09h56   #12
Modératrice
 
Avatar de Candygirl
 
Femme
Inscription : juillet 2006
Messages : 1 529
Détails du profil
Informations personnelles :
Sexe : Femme
Âge : 40
Localisation : Suisse

Informations forums :
Inscription : juillet 2006
Messages : 1 529
Points : 1 869
Points : 1 869
Je ne vois pas ce qui ne fonctionne pas avec ton 2ème exemple ?

Sur FF, ton texte passe bien à la ligne jusqu'à concurrence de la taille minimale de la fenêtre du navigateur. D'ailleurs, vu que tu as entré, cette fois-ci, un texte censé, avec des espaces, la propriété/valeur word-wrap:break-word n'est pas mise à contribution dans ce contexte-ci.
__________________
Les bons réflexes:
  • avant de poser une question:
    règles | faq | tutoriels | recherche
  • clarté, politesse, vocabulaire et orthographe soignés = efficacité
  • remercier ceux qui ont pris le temps d'aider et si c'est le cas
Candygirl est actuellement connecté   Envoyer un message privé Réponse avec citation 00
Vieux 30/07/2011, 14h48   #13
Modérateur
 
Avatar de NoSmoking
 
Homme
Inscription : janvier 2011
Messages : 2 944
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : France, Isère (Rhône Alpes)

Informations forums :
Inscription : janvier 2011
Messages : 2 944
Points : 4 776
Points : 4 776
il faut, pour que word-wrap:break-word;est une quelconque utilité, que le conteneur du texte ait une largeur, sinon ce conteneur fera 100% de la largeur de son conteneur.
NoSmoking est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité Cette discussion est résolue.
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 12h06.


 
 
 
 
Partenaires

Hébergement Web