Bonjour,
Pour créer mon site Internet sous Joomla, je me suis aidée du logiciel Artisteer. Comme il ne me convenait pas tout à fait, j'ai effectué des modifications au menu:
- mis une image à la place d'un background-color
- mis un width: auto (au lieu de 180px)
- mis un padding-right de 15px
Malheureusement si tout passe sous Firefox, je ne peux pas dire la même chose sous IE où mon sous-menu est coupé, on ne voit pas la fin du texte.
Je sais que c'est un souci de padding et de margin, j'ai changé dans les trois fichiers qu'Artisteer a généré mais rien n'y fait...
- Partie menu du template.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 /* menu structure */ .art-menu { padding: 3px 3px 3px 3px; } .art-nav { position: relative; height: 33px; z-index: 100; } .art-nav .l, .art-nav .r { position: absolute; z-index: -1; top: 0; height: 33px; background-image: url('../images/nav.png'); } .art-nav .l { left: 0; right:0px; } .art-nav .r { right: 0; width: 890px; clip: rect(auto, auto, auto, 890px); } /* end Menu */ /* begin MenuItem */ .art-menu ul li { clear: both; } .art-menu a { position:relative; display: block; overflow:hidden; height: 27px; cursor: pointer; text-decoration: none; margin-right: 2px; margin-left: 2px; } .art-menu a .r, .art-menu a .l { position:absolute; display: block; top:0; z-index:-1; height: 81px; background-image: url('../images/MenuItem.png'); } .art-menu a .l { left:0; right:11px; } .art-menu a .r { width:422px; right:0; clip: rect(auto, auto, auto, 411px); } .art-menu a .t { font-family: "Palatino Linotype", Georgia, "Times New Roman", Times, Serif; font-size: 14px; font-style: normal; font-weight: bold; color: #FFFFFF; padding: 0 6px; margin: 0 11px; line-height: 27px; text-align: center; } .art-menu a:hover .l, .art-menu a:hover .r { top:-27px; } .art-menu li:hover>a .l, .art-menu li:hover>a .r { top:-27px; } .art-menu li:hover a .l, .art-menu li:hover a .r { top:-27px; } .art-menu a:hover .t { color: #3DABFF; } .art-menu li:hover a .t { color: #3DABFF; } .art-menu li:hover>a .t { color: #3DABFF; } .art-menu a.active .l, .art-menu a.active .r { top: -54px; } .art-menu a.active .t { color: #3DABFF; } /* end MenuItem */ /* begin MenuSubItem */ .art-menu ul a { display:block; text-align: center; white-space: nowrap; height: 26px; /*width: 180px;*/ width: auto; overflow: hidden; line-height: 26px; /*margin-right: auto;*/ padding-right: 15px; background-image: url('../images/MenuItemsurvol.png'); /*subitem-bg*/ background-position: left top; background-repeat: repeat-x; border-width: 0px; border-style: solid; } .art-nav ul.art-menu ul span, .art-nav ul.art-menu ul span span { display: inline; float: none; margin: inherit; padding: inherit; background-image: none; text-align: inherit; text-decoration: inherit; } .art-menu ul a, .art-menu ul a:link, .art-menu ul a:visited, .art-menu ul a:hover, .art-menu ul a:active, .art-nav ul.art-menu ul span, .art-nav ul.art-menu ul span span { text-align: left; text-indent: 12px; text-decoration: none; line-height: 26px; color: #FFFFFF; font-family: "Palatino Linotype", Georgia, "Times New Roman", Times, Serif; font-size: 14px; font-style: normal; font-weight: bold; } .art-menu ul ul a { margin-left: auto; } .art-menu ul li a:hover { color: #3DABFF; background-position: 0 -26px; } .art-menu ul li:hover>a { color: #3DABFF; background-position: 0 -26px; } .art-nav .art-menu ul li a:hover span, .art-nav .art-menu ul li a:hover span span { color: #3DABFF; } .art-nav .art-menu ul li:hover>a span, .art-nav .art-menu ul li:hover>a span span { color: #3DABFF; } /* end MenuSubItem */
- Partie menu du template.ie6.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 /* begin Menu */ .art-menu ul { height: 1%; width:1px; } .art-menu, .art-menu ul { height: 1%; } .art-menu li.art-menuhover { z-index: 10000; } .art-menu .art-menuhoverUL { visibility: visible; } .art-menu .art-menuhoverUL { top: 100%; left: 0; } .art-menu .art-menuhoverUL .art-menuhoverUL { top: 0; left: 100%; } .art-menu ul a { height: 1%; } .art-menu li li { float: left; width: 100%; } .art-menu .art-menuhoverUL .art-menuhoverUL { top: 5px; left: 100%; } .art-menu, .art-menu ul { height: 1%; } .art-menu li.art-menuhover { z-index: 10000; } .art-menu .art-menuhoverUL { visibility: visible; } .art-menu .art-menuhoverUL { top: 100%; left: 0; } .art-menu .art-menuhoverUL .art-menuhoverUL { top: 0; left: 100%; } .art-menu ul a { height: 1%; } .art-menu li li { float: left; width: 100%; } .art-nav { zoom: 1; } .art-nav .l, .art-nav .r { font-size: 1px; background: none; behavior: expression(this.runtimeStyle.filter?'':this.runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + GetStyleUrl()+"../images/nav.png',sizingMethod='crop')"); } .art-nav .l { width: expression(this.parentNode.offsetWidth-0+'px'); } .art-nav .r { left: expression(this.parentNode.offsetWidth-890+'px'); clip: rect(auto auto auto 890px); } /* end Menu */ /* begin MenuItem */ .art-menu a { float:left; } .art-menu a:hover { visibility:visible; } .art-menu a .r, .art-menu a .l { font-size:1px; background: none; behavior: expression(this.runtimeStyle.filter?'':this.runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + GetStyleUrl()+"../images/MenuItem.png',sizingMethod='crop')"); } .art-menu a .r { left: expression(this.parentNode.offsetWidth-422+'px'); clip: rect(auto auto auto 411px); } .art-menu a .l { width: expression(this.parentNode.offsetWidth-11+'px'); } .art-menuhover .art-menuhoverA .t { color: #3DABFF; } .art-menuhover .art-menuhoverA .l, .art-menuhover .art-menuhoverA .r { top: -27px; } /* end MenuItem */ /* begin MenuSubItem */ .art-menu ul a { color: #FFFFFF !important; width: auto!important; padding-right: 15px!important; } .art-menu ul a:hover { color: #3DABFF !important; } .art-menu ul .art-menuhover .art-menuhoverA { color: #3DABFF !important; background-position: 0 -26px; } .art-nav .art-menu ul a:hover span, .art-nav .art-menu ul a:hover span span { color: #3DABFF !important; } .art-nav .art-menu ul .art-menuhover .art-menuhoverA span, .art-nav .art-menu ul .art-menuhover .art-menuhoverA span span { color: #3DABFF !important; } /* end MenuSubItem */
- Partie menu du template.ie7.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 /* begin Menu */ .art-nav .r { clip: rect(auto auto auto 890px); } /* end Menu */ /* begin MenuItem */ .art-menu a .r { clip: rect(auto auto auto 411px); } /* end MenuItem */ /* begin MenuSubItem */ .art-menu ul a { width: auto!important; padding-right: 15px!important; }
J'ai rajouté dans :
- template.css :
- template.ie6.css :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 .art-menu ul a { width: auto; padding-right: 15px; }
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 .art-menu ul a { width: auto!important; padding-right: 15px!important; }
- template.ie7.css :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 /* begin MenuSubItem */ .art-menu ul a { width: auto!important; padding-right: 15px!important; }
Je remercie tous ceux qui pourront m'aider sur ce problème sur lequel je cale depuis hier.
J'ai avancé :
Dans template.ie6.css et template.ie7.css, j'ai remplacé ce que j'avais mis précédemment :
par
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 /* begin MenuSubItem */ .art-menu ul a { width: auto!important; padding-right: 15px!important; }
Code : Sélectionner tout - Visualiser dans une fenêtre à part margin-right:-350px;
Maintenant, j'aimerai que les sous-menus de la même rubrique soient tous de la même longueur.
Actuellement, par exemple j'ai une rubrique "Toomuch" et en sous-menus "Simple" et "Satisfaction"....Et mon background-color du sous-menu "Simple" est plus court que "Satisfaction" alors que je voudrais qu'il s'arrête comme "Satisfaction". Peut-être quelqu'un pourrait-il m'aider sur cette dernière ligne droite ?
Après plusieurs jours de recherche je suis à court de solution. Je me suis dit que c'était peut-être behaviour ou clip ou left = 100% mais je sèche littéralement...
Partager