Bonjour,
Je penses que c'est un problème courrant, mais je n'en ai pas la solution.
J'ai deux div, une en float right et l'autre en float left. Et en fonction de la taille de l'écrant, la div de droite disparait.
Merci pour toute aide.
Bonjour,
Je penses que c'est un problème courrant, mais je n'en ai pas la solution.
J'ai deux div, une en float right et l'autre en float left. Et en fonction de la taille de l'écrant, la div de droite disparait.
Merci pour toute aide.
Bonjour,
pouvez-vous envoyer votre code (html et css) pour travailler dessus.
Edit: problem résolu.
Il aurait été intéressant de poster la solution en même temps que les détails demandé par rodolphebrd pour ceux ayant un problème similaire et qui tomberaient sur ce message.
Je ne suis pas schizophrène, nous sommes unanime !!!
► Pensez à la balise code et au CODE HTML GENERE !!!!
► Ausi c'est le cas et au
à ceux qui vous ont aidé.
► Vous souhaitez participer aux rubriques CSS et (X)HTML ? Contactez-nous !
Créer des colonnes de même hauteur en CSS
Glossaire CSS
Les bordures en CSS3
Les transitions en CSS3
Le script vient de http://krikus.com/js/splitter/.
J'ai réalisé que le problème se produit aussi sur la page de démo.
Aux lignes 139 et 140 du script (sur VS apres avoir formaté le fichier)
j'ai just ajouté
Code javascript : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 var sizeA = Math.max(0, (percpx - barsize)); var sizeA = Math.max(0, (splitsize - percpx));
Code javascript : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 var sizeA = Math.max(0, (percpx - barsize) - 1); var sizeA = Math.max(0, (splitsize - percpx) - 1);
Dernière modification par Bovino ; 21/05/2013 à 10h42. Motif: Merci d'indiquer le langage utilisé ([code=xxx]) !
Maintenant j'ai un autre problème.
La zone haute du plit horizontal a son height a 0 et je ne trouve pas le problème dans le script (je suis en MVC3 et le debug du js ne fonctionne pas).
Je penses que cela vient de mon css.
Splitter.js
Site.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 #splitterContainer { /* Main splitter element */ height: 95%; width: 100%; margin: 0; padding: 0; } #leftPane { float: left; width: 15%; height: 100%; border-top: solid 1px #9cbdff; background: #c4dcfb; overflow: auto; } #rightPane { /*Contains toolbar and horizontal splitter*/ float: right; width: 85%; height: 100%; background: #f4f4f4; } #rightSplitterContainer { /*horizontal splitter*/ width: 100%; background: #FFFFFF; border-top: solid 1px #9cbdff; } #rightTopPane { /*Top nested in horizontal splitter */ width: 100%; height: 50%; overflow: auto; background: #f4f4f4; } #rightBottomPane { /*Bottom nested in horizontal splitter */ background: #f4f4f4; width: 100%; overflow: auto; } /* Splitbar styles; these are the default class names and required styles */.splitbarV { float: left; width: 6px; height: 100%; line-height: 0px; font-size: 0px; border-left: solid 1px #9cbdff; border-right: solid 1px #9cbdff; background: #cbe1fb url(../Resources/panev.gif) 0% 50%; } .splitbarH { height: 6px; text-align: left; line-height: 0px; font-size: 0px; border-top: solid 1px #9cbdff; border-bottom: solid 1px #9cbdff; background: #cbe1fb url(../Resources/paneh.gif) 50% 0%; } .splitbuttonV { margin-top: -41px; margin-left: -4px; top: 50%; position: relative; height: 83px; width: 10px; background: transparent url(../Resources/panevc.gif) 10px 50%; } .splitbuttonV.invert { margin-left: 0px; background: transparent url(../Resources/panevc.gif) 0px 50%; } .splitbuttonH { margin-left: -41px; left: 50%; position: relative; height: 10px !important; width: 83px; background: transparent url(../Resources/panehc.gif) 50% 0px; } .splitbuttonH.invert { margin-top: -4px; background: transparent url(../Resources/panehc.gif) 50% -10px; } .splitbarV.working, .splitbarH.working, .splitbuttonV.working, .splitbuttonH.working { -moz-opacity: .50; filter: alpha(opacity=50); opacity: .50; }
index.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
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
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379 /*---------------------------------------------------------- The base color for this template is #5c87b2. If you'd like to use a different color start by replacing all instances of #5c87b2 with your new color. ----------------------------------------------------------*/ html { width: 100%; height: 100%; } body { background-color: #5c87b2; font-size: .85em; font-family: "Trebuchet MS" , Verdana, Helvetica, Sans-Serif; margin: 0; padding: 0; color: #696969; width: 100%; height: 100%; } a:link { color: #034af3; text-decoration: underline; } a:visited { color: #505abc; } a:hover { color: #1d60ff; text-decoration: none; } a:active { color: #12eb87; } p, ul { margin-bottom: 20px; line-height: 1.6em; } header, footer, nav, section { display: block; } /* HEADINGS ----------------------------------------------------------*/ h1, h2, h3, h4, h5, h6 { font-size: 1.5em; color: #000; } h1 { font-size: 2em; padding-bottom: 0; margin-bottom: 0; } h2 { padding: 0 0 10px 0; } h3 { font-size: 1.2em; } h4 { font-size: 1.1em; } h5, h6 { font-size: 1em; } /* PRIMARY LAYOUT ELEMENTS ----------------------------------------------------------*/ /* you can specify a greater or lesser percentage for the page width. Or, you can specify an exact pixel width. */ .page { height: 100%; width: 100%; margin: 0; padding: 0; overflow: hidden; } header, #header { position: relative; margin-bottom: 0px; color: #000; padding: 0; } header h1, #header h1 { font-weight: bold; padding: 5px 0; margin: 0; color: #fff; border: none; line-height: 2em; font-size: 32px !important; text-shadow: 1px 1px 2px #111; } #main { height: 95%; padding: 15px; background-color: #fff; border-radius: 4px 0 0 0; -webkit-border-radius: 4px 0 0 0; -moz-border-radius: 4px 0 0 0; } footer, #footer { background-color: #fff; color: #999; padding: 10px 0; text-align: center; line-height: normal; margin: 0 0 30px 0; font-size: .9em; border-radius: 0 0 4px 4px; -webkit-border-radius: 0 0 4px 4px; -moz-border-radius: 0 0 4px 4px; } /* TAB MENU ----------------------------------------------------------*/ ul#menu { border-bottom: 1px #5C87B2 solid; padding: 0 0 2px; position: relative; margin: 0; text-align: right; } ul#menu li { display: inline; list-style: none; } ul#menu li#greeting { padding: 10px 20px; font-weight: bold; text-decoration: none; line-height: 2.8em; color: #fff; } ul#menu li a { padding: 10px 20px; font-weight: bold; text-decoration: none; line-height: 2.8em; background-color: #e8eef4; color: #034af3; border-radius: 4px 4px 0 0; -webkit-border-radius: 4px 4px 0 0; -moz-border-radius: 4px 4px 0 0; } ul#menu li a:hover { background-color: #fff; text-decoration: none; } ul#menu li a:active { background-color: #a6e2a6; text-decoration: none; } ul#menu li.selected a { background-color: #fff; color: #000; } /* FORM LAYOUT ELEMENTS ----------------------------------------------------------*/ fieldset { border: 1px solid #ddd; padding: 0 1.4em 1.4em 1.4em; margin: 0 0 1.5em 0; } legend { font-size: 1.2em; font-weight: bold; } textarea { min-height: 75px; } input[type="text"], input[type="password"] { border: 1px solid #ccc; padding: 2px; font-size: 1.2em; color: #444; width: 200px; } select { border: 1px solid #ccc; padding: 2px; font-size: 1.2em; color: #444; } input[type="submit"] { font-size: 1.2em; padding: 5px; } /* TABLE ----------------------------------------------------------*/ table { border: solid 1px #e8eef4; border-collapse: collapse; } table td { padding: 5px; border: solid 1px #e8eef4; } table th { padding: 6px 5px; text-align: left; background-color: #e8eef4; border: solid 1px #e8eef4; } /* MISC ----------------------------------------------------------*/ .clear { clear: both; } .error { color: Red; } nav, #menucontainer { margin-top: 40px; } div#title { display: block; float: left; text-align: left; } #logindisplay { font-size: 1.1em; display: block; text-align: right; margin: 10px; color: White; } #logindisplay a:link { color: white; text-decoration: underline; } #logindisplay a:visited { color: white; text-decoration: underline; } #logindisplay a:hover { color: white; text-decoration: none; } /* Styles for validation helpers -----------------------------------------------------------*/ .field-validation-error { color: #ff0000; } .field-validation-valid { display: none; } .input-validation-error { border: 1px solid #ff0000; background-color: #ffeeee; } .validation-summary-errors { font-weight: bold; color: #ff0000; } .validation-summary-valid { display: none; } /* Styles for editor and display helpers ----------------------------------------------------------*/ .display-label, .editor-label { margin: 1em 0 0 0; } .display-field, .editor-field { margin: 0.5em 0 0 0; } .text-box { width: 30em; } .text-box.multi-line { height: 6.5em; } .tri-state { width: 6em; }
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 <!DOCTYPE html> <html> <head> <title>Index</title> <!-- Styles --> <link href="splitter.css" rel="stylesheet" type="text/css" /> <link href="site.css" rel="stylesheet" type="text/css" /> <!-- J-Query --> <script src="/Scripts/jquery-1.5.1.js" type="text/javascript"></script> <script src="/Scripts/jquery-ui-1.10.3.custom.js" type="text/javascript"></script> <script src="/Scripts/splitter.js" type="text/javascript"></script> </head> <body> <div class="page"> <div id="header"> <div id="title"> <h1>Gestion Prod</h1> </div> <div id="logindisplay"> Welcome ! </div> <div id="menucontainer"> <ul id="menu"> <li><a href="/">Home</a></li> <li><a href="/Home/About">About</a></li> <li><a href="/Admin">Admin</a></li> </ul> </div> </div> <div id="main"> <script type="text/javascript"> $(document).ready(function () { $('#TableTop').dataTable(); $('#TableBot').dataTable(); $("#splitterContainer").splitter({ minAsize: 100, maxAsize: 300, splitVertical: true, A: $('#leftPane'), B: $('#rightPane'), slave: $("#rightSplitterContainer"), closeableto: 0 }); $("#rightSplitterContainer").splitter({ splitHorizontal: true, A: $('#rightTopPane'), B: $('#rightBottomPane'), closeableto: 100 }); }); </script> <div id="splitterContainer"> <div id="leftPane"> </div> <div id="rightPane"> <div style="background: #bac8dc"> </div> <div id="rightSplitterContainer"> <div id="rightTopPane"> </div> <div id="rightBottomPane"> <div> </div> </div> </div> </div> </div> </div> <div id="footer"> </div> </div> </body> </html>
Merci pour toute aide.
Dernière modification par Bovino ; 21/05/2013 à 10h51. Motif: Merci d'indiquer le langage utilisé ([code=xxx]) !
Partager