Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
3183 connectés 

  FORUM HardWare.fr
  Programmation
  HTML/CSS

  Conflits entre menu et thème CSS

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Conflits entre menu et thème CSS

n°1457746
ersatz
Posté le 16-10-2006 à 00:35:10  profilanswer
 

Bonjour à tous  :hello:  
 
Je suis nouveau avec CSS, et jusqu'à présent ca allait bien, jusqu'à cet apres midi  :mrgreen:  
j'utilise wordpress, et pour customiser mon thème j'ai créer un menu horizontal : http://uzi.jupiterii.com/testmenu_v2/htmlv2.html
 
j'en suis content, par contre, il est impossible de l'intégrer dans le fichier css de mon thème, rien ne va plus sinon : le menu déroulant fait décaler vers le bas le contenu, les images de fonds (rollovers) ne marchent pas, j'ai des marges qui apparaissent à droite et à gauche.... Je croyais vraiment qu'une fois que le menu fait y'aurait plus qu'à le coller, mais loin de là et je ne sais plus que faire de tous ces problèmes d'intégration.
 
Pourriez vous me dire ce qui ne va selon. Toute aide sera VRAIMENT VRAIMENT trèsss apprécié  :jap:  :jap:  
 
 
je mets le css du thème :
 
 

Code :
  1. body { margin: 0; padding: 0; background: #262626; }
  2. * {margin: 0; padding: 0; border: 0px none; font-family: "Trebuchet MS", Arial, sans-serif }
  3. /*------------Basic styles------------*/
  4. h1, h2, h3, span#copyright, span#design { margin: 0 10px; color: #fff; font-weight: normal; text-decoration: none; background: transparent }
  5. p {
  6. margin: 0 0 1em;
  7. padding: 0;
  8. line-height: 1.4em;
  9. font-size: 0.8em;
  10. }
  11. /*p { font-size: 0.8em; line-height: 1.4em; text-align: justify }*/
  12. h1 { font-size: 1.3em; line-height: 1.4em; letter-spacing: 0.25em } /* site heading */
  13. h2 { font-size: 1.0em; line-height: 1.4em; color: #FFA000 } /* site heading */
  14. h3 { font-size: 0.8em; line-height: 1.4em; color: #FFA000  }    /* sub headings */
  15. span#copyright { font-size: 13px; line-height: 35px }  /* sets the copyright styles */
  16. span#design {  float: right; font-size: 13px; line-height: 35px }  /* floats the design link into position */
  17. span.validation {  float: right; margin-right: 10px; } /* floats the validation buttons */
  18. .validation img {  margin: 0; } /* floats the validation buttons */
  19. div { padding: 10px 0;}
  20. #hdrimg a {color: #06FF00; text-decoration: none; font-weight: normal;}
  21. #hdrimg a strong {color: #fff; text-decoration: none; font-weight: normal;}
  22. #hdrimg a:hover {color: #fff; text-decoration: none; font-weight: normal;}
  23. #hdrimg a:hover strong {color: #06FF00; text-decoration: none; font-weight: normal;}
  24. /*-------------Layout----------------*/
  25. #hdrimg {   /* Large image */
  26. float: left;
  27. width: 100%;
  28. margin-bottom: 5px;
  29. background: url('images/hdr.gif') repeat-x;
  30. height: 170px;   /* ie5x hack begins here */   
  31. voice-family: "\"}\"";
  32. voice-family: inherit;
  33. height: 150px;
  34. }
  35. html>body #hdrimg {
  36. height: 150px;        /* ie5x hack ends here */
  37. }
  38. .rowcontainer {      /* Used to keep the divs in a row.  you can use this for any size of divs */
  39. float: left;
  40. margin-bottom: 5px;
  41. width: 100%;
  42. overflow: hidden;
  43. background: #333;
  44. }
  45. #bttmbar { float: left; width: 100%; height: 35px; background: url('images/hdr.gif') bottom repeat-x }    /* Bottom copyright bar */
  46. /*------Columns: Note they dont add up to 100%, this is intentional to avoid problems!----------*/
  47. .fullcolumn { float: left; width: 99%;}  /* Full width column for a one column site */
  48. .halfcolumn { float: left; width: 49%;}  /* Half width column for a two column site. */
  49. .onethirdcolumn { float: left; width: 33%; }  /* One third width column for a three column site */
  50. .quartercolumn { float: left; width: 24.5% }  /* One quarter width column for a four column site */
  51. .threequartercolumn { float: left; width: 74.5% }
  52. .twocolumn { float: left; width: 20% }
  53. .sixcolumn { float: left; width: 59% }
  54. /*------------------------------Main Navigation------------------------------------------*/
  55. #nav { position: absolute; top: 145px; left: 0px; height: 25px; width: 100% }
  56. ul#nav  { margin: 0 }
  57. #nav li  /* Main nav list items */
  58. {
  59. font-size: 13px;
  60. float: left;
  61. list-style: none;
  62. text-align: center
  63. }
  64. #nav li a {   /* Main nav styles for all links */
  65. display: block; /* Although display:block suggests a vertical list the float:left property under #nav li causes the menu to float inline */
  66. margin-left: 5px; /* adds a gap between the tabs */
  67. width: 90px;  /* width of the tab */
  68. line-height: 25px; /* height of the tab */
  69. text-decoration: none;
  70. }
  71. #nav a:link, #nav a:visited  { background: url('images/tab.gif') no-repeat 0 -25px }
  72. #nav a:hover, #nav a:active { background: url('images/tab.gif') no-repeat 0 0 }
  73. #nav a#current { background: url('images/tab.gif') no-repeat 0 0 }
  74. /*-----------------------------------Other tags-----------------------------------------*/
  75. acronym { border-bottom: 1px dashed #999; cursor: help }
  76. blockquote { border-top: 2px solid #FFA000; border-bottom: 2px solid #FFA000; margin-left: 1.5em; padding-left: 5px; background-color: #333333}
  77. /* lists */
  78. ul { margin: 5px 0 5px 35px; list-style: url('images/bull.gif') }
  79. ol { margin: 5px 0 5px 35px; list-style: decimal }
  80. ol li, ul li { color: #fff; font-size: 0.8em; line-height: 1.4em }
  81. hr { margin: 10px 0px; height: 1px; background: #444; color: #444 }  /* rule styling */
  82. img {margin: 0 10px} /* all images styling */
  83. img.right {float: right}  /* right floating images */
  84. img.left {float: left}   /* left floating images */
  85. /*-------------------------------------------------------------------------------*/
  86. /* Modification done to basic theme */
  87. /* Added */
  88. #searchdiv {
  89. margin-bottom: 10px;
  90.  margin-left: 5px;
  91. }
  92. h4, h5, h6 {
  93.   font-family: "Georgia", "Times New Roman", Times, serif;
  94.   font-weight: normal;
  95. }
  96. a, a:visited {
  97.     font-weight: bold;
  98.     color: #fff;
  99.     text-decoration: none;
  100. }
  101.    
  102. a:hover {
  103.     text-decoration: underline;
  104. }
  105. /*font: bold 20px/1.1em "Trebuchet MS", "Verdana", sans-serif; }*/       
  106. h3.entrytitle {
  107. padding: 0;
  108. margin-bottom: 10px;
  109. font-family: Verdana, Arial, Helvetica, sans-serif;
  110. font-size: 20px;
  111. line-height: 1.1em;
  112. }
  113. h3.entrytitle a, h3.entrytitle a:visited {
  114. color: #FFA200;
  115. text-decoration: none;
  116. }
  117. h3.entrytitle  a:hover{
  118. color: #FFA200;
  119. text-decoration: underline;
  120. }
  121.    
  122. h3 a {
  123.     text-decoration: none;
  124.     border: 0px none;
  125.     color: #FFA200;
  126. }
  127. div .entrybody h3, div .entrybody h2{
  128. margin-bottom:10px;
  129. color:#B37100;
  130. }
  131.    
  132. h3 a:hover {
  133.     text-decoration: none;
  134.     border: 0px none;
  135.     text-shadow: none;
  136.     color: #333;
  137. }
  138. .entry{
  139. background-color: #2E3233;
  140. border: 1px solid #3e4243;
  141. padding: 10px;
  142. margin-bottom:15px;
  143. color:#FFFFFF;
  144. }
  145. .arc {
  146. border: 1px solid #3e4243;
  147. background-color:#2E3233;
  148. padding:10px;
  149. color:#FFFFFF;
  150. margin-bottom:15px;
  151. }
  152. .entrymeta {
  153. font-size: 11px;
  154. margin-bottom: 15px;
  155. color:#FFFFFF;
  156. }
  157. .entry ul, .entry ol{
  158. margin-left:30px;
  159. list-style:disc;
  160. margin-top:10px;
  161. margin-bottom:10px;
  162. }
  163. .entry ul li, .entry ol li {
  164. padding-top:5px;
  165. line-height:1.5em;
  166. }
  167. /* Sidebar styling*/
  168. #sidebar {
  169. margin-top: 0px;
  170. margin-right: 5px;
  171. margin-bottom: 10px;
  172. margin-left: 5px;
  173. background-color: #2E3233;
  174. padding:5px;
  175. color:#dddddd;
  176. border: 1px solid #3e4243;
  177. }
  178. #sidebar h2 {
  179. font-weight: bold;
  180. text-transform: uppercase;
  181. color: #dddddd;
  182. font-size: 110%;
  183. border-bottom-width: 1px;
  184. border-bottom-style: solid;
  185. border-bottom-color: #555;
  186. margin-bottom: 10px;
  187. }
  188. #sidebar p{
  189. margin: 7px;
  190. color:#999999;
  191. line-height: 1.4em;
  192. }
  193. #sidebar a, #sidebar a:visited {
  194. color:#ffa200;
  195. text-decoration:none;
  196. }
  197. #sidebar a:hover {
  198. color:#ffa200;
  199. text-decoration:underline;
  200. }
  201. #sidebar ul li {
  202. list-style-type: none;
  203. list-style-image: url('none');
  204. margin-bottom: 15px;
  205. margin-left: 10px
  206. }
  207. #sidebar ul p, #sidebar ul select {
  208. margin: 5px 0 8px;
  209. }
  210. #sidebar ul ul, #sidebar ul ol {
  211. margin: 5px 0 0 10px;
  212. }
  213. #sidebar ul ul ul, #sidebar ul ol {
  214. margin: 0 0 0 10px;
  215. }
  216. ol li, #sidebar ul ol li {
  217. list-style: decimal outside;
  218. }
  219. #sidebar ul ul li, #sidebar ul ol li {
  220. margin-top: 3px;
  221. margin-right: 0em;
  222. margin-bottom: 0em;
  223. margin-left: 0.5em;
  224. padding-top: 0.1em;
  225. padding-right: 0;
  226. padding-bottom: 0.1em;
  227. padding-left: 0;
  228. list-style-type: none;
  229. list-style-position: outside;
  230. list-style-image: url('images/bull.gif');
  231. }

mood
Publicité
Posté le 16-10-2006 à 00:35:10  profilanswer
 

n°1457755
FLK
Posté le 16-10-2006 à 00:46:26  profilanswer
 

tu utilise le menu qu'on trouve dans le lien que tu as donné avec le CSS qui tu as copié dans ton post ?
 
Si oui, alors c'est normal que ca marche pas ... il manque tous les styles de ton menu.

n°1457765
ersatz
Posté le 16-10-2006 à 01:05:32  profilanswer
 

En fait ca marche pas quand je les ajoute. Je les ai pas mis parceque ca aurait fait une liste interminable, et il sont visibles dans le lien.
hehe :P

n°1457767
FLK
Posté le 16-10-2006 à 01:10:15  profilanswer
 

c'est possible d'avoir une demo qui marche pas?
 
tu dois avori des styles qui rentrent en conflit j'imagine.

n°1457933
ersatz
Posté le 16-10-2006 à 12:12:42  profilanswer
 

Ouais, plein en fait.
Je mets une demo en ligne de qui marche pas.

n°1458224
ersatz
Posté le 16-10-2006 à 17:42:27  profilanswer
 

Bon, on reprend, ces lignes de codes ont certainement dues vous faire peur :D
 
Ce qui se passe c'est que je voudrais modifier le css de mon thème original:
http://img291.imageshack.us/img291/7254/resultuf0.jpg
 
J'ai donc fait un menu (http://uzi.jupiterii.com/testmenu_v2/htmlv4.html), mais je n'arrive pas à l'intégrer dans mon site, juste dessous le header.
 
Comme vous pouvez le voir sur ce lien : http://uzi.jupiterii.com/, pas mal d'élément entre conflit : le header a disparu, le footer (qui a la meme background image) aussi, et je ne comprend pas pourquoi mon menu est haut perché.
 
Avez vous une idée?, c'est peut etre une propriété d'un conteneur qui ne va pas ou une position, mais je n'arrive pas à trouver
Merci à tous :D !


Message édité par ersatz le 16-10-2006 à 18:15:24
n°1458261
omega2
Posté le 16-10-2006 à 18:27:43  profilanswer
 

le plus simple : donne un id unique à l'élément racine de ton menu et référence tous les style de ton menu en indiquant cet id là.
Tu véras, ton ancien fichier css ne sera plus bousillé par le css du menu.
 
Il restera peut être ensuite à adapter un des deux css pour éviter que le menu ne soit géné par le css du théme du site.

n°1458286
ersatz
Posté le 16-10-2006 à 19:12:07  profilanswer
 

Ouais c'est ce que j'ai fait :

Code :
  1. /* Menu */
  2. #menu {
  3. position: absolute; /* placement du menu, à modifier selon vos besoins */
  4. z-index:100;
  5. width:100%; /* correction pour Opera */
  6. padding-left: 180px;
  7. background:url(pagebar_bg.gif);
  8. height: 37px;
  9. #menu dl, dt, dd, ul, li {
  10. margin: 0;
  11. padding: 0;
  12. list-style-type: none;
  13. #menu li a {
  14. text-decoration: none;
  15. display: block;
  16. height: 100%;
  17. border: 0 none;
  18. }
  19. .........


 
Je vois pas un élement du menu qui n'est pas un #menu dans lui, et pourtant :5

n°1458373
gatsu35
Blablaté par Harko
Posté le 16-10-2006 à 22:02:31  profilanswer
 

Code :
  1. #menu dl, dt, dd, ul, li


en  

Code :
  1. #menu dl, #menu dt, #menu dd, #menu ul, #menu li


n°1458383
ersatz
Posté le 16-10-2006 à 22:27:44  profilanswer
 

Ouais bonne idée, je vais tester.  
Je devrais peut être mettre le code en entier du Css menu + CSS thème pour que vous regardiez si y'a pas d'autre erreur, parceque si vous trouvez déjà un truc avec les 3 lignes de code d'exemple que j'ai mis ! :pt1cable:  Sinon vous pouvez tjs le voir le dans le lien du site.
Merci à toi


Message édité par ersatz le 16-10-2006 à 22:30:00
mood
Publicité
Posté le 16-10-2006 à 22:27:44  profilanswer
 

n°1458394
ersatz
Posté le 16-10-2006 à 22:50:04  profilanswer
 

en fait ça à rien changer :( :??:


Message édité par ersatz le 16-10-2006 à 22:53:40
n°1458408
gatsu35
Blablaté par Harko
Posté le 16-10-2006 à 23:01:15  profilanswer
 

balances tout le code de ton menu bon sang

n°1458422
ersatz
Posté le 16-10-2006 à 23:38:25  profilanswer
 

Ah!  :D  j'ai bien avancé!
En fait j'avais pas fait attention que Dreamweaver m'a mis à jour mes liens :heink:...voilà pk y'avait plus le hearder et le footer    
Comme vous pouvez le voir il reste plus qu'a corriger un léger décalage entre la barre du menu et le texte (http://uzi.jupiterii.com/).
 
Voilà tout le CSS, le menu est à la ligne 307
Merci à Gatsu35 et aux autres de s'intéressé à mon pb :

Code :
  1. body { margin: 0; padding: 0; background: #262626; }
  2. * {margin: 0; padding: 0; border: 0px none; font-family: "Trebuchet MS", Arial, sans-serif }
  3. /*------------Basic styles------------*/
  4. h1, h2, h3, span#copyright, span#design { margin: 0 10px; color: #fff; font-weight: normal; text-decoration: none; background: transparent }
  5. p { /*p { font-size: 0.8em; line-height: 1.4em; text-align: justify }*/
  6. margin: 0 0 1em;
  7. padding: 0;
  8. line-height: 1.4em;
  9. font-size: 0.8em;
  10. }
  11. h1 { font-size: 1.3em; line-height: 1.4em; letter-spacing: 0.25em } /* site heading */
  12. h2 { font-size: 1.0em; line-height: 1.4em; color: #FFA000 } /* site heading */
  13. h3 { font-size: 0.8em; line-height: 1.4em; color: #FFA000  }    /* sub headings */
  14. span#copyright { font-size: 13px; line-height: 35px }  /* sets the copyright styles */
  15. span#design {  float: right; font-size: 13px; line-height: 35px }  /* floats the design link into position */
  16. span.validation {  float: right; margin-right: 10px; } /* floats the validation buttons */
  17. .validation img {  margin: 0; } /* floats the validation buttons */
  18. div { padding: 10px 0;}
  19. #hdrimg a {color: #06FF00; text-decoration: none; font-weight: normal;}
  20. #hdrimg a strong {color: #fff; text-decoration: none; font-weight: normal;}
  21. #hdrimg a:hover {color: #fff; text-decoration: none; font-weight: normal;}
  22. #hdrimg a:hover strong {color: #06FF00; text-decoration: none; font-weight: normal;}
  23. /*-------------Layout----------------*/
  24. #hdrimg {   /* Large image */
  25. float: left;
  26. width: 100%;
  27. margin-bottom: 5px;
  28. background: url('images/hdr.gif') repeat-x;
  29. height: 170px;   /* ie5x hack begins here */   
  30. voice-family: "\"}\"";
  31. voice-family: inherit;
  32. height: 150px;
  33. }
  34. html>body #hdrimg {
  35. height: 150px;        /* ie5x hack ends here */
  36. }
  37. .rowcontainer {      /* Used to keep the divs in a row.  you can use this for any size of divs */
  38. float: left;
  39. margin-bottom: 5px;
  40. width: 100%;
  41. overflow: hidden;
  42. background: #333;
  43. }
  44. #bttmbar { float: left; width: 100%; height: 35px; background: url('images/hdr.gif') bottom repeat-x }    /* Bottom copyright bar */
  45. /*------Columns: Note they dont add up to 100%, this is intentional to avoid problems!----------*/
  46. .fullcolumn { float: left; width: 99%;}  /* Full width column for a one column site */
  47. .halfcolumn { float: left; width: 49%;}  /* Half width column for a two column site. */
  48. .onethirdcolumn { float: left; width: 33%; }  /* One third width column for a three column site */
  49. .quartercolumn { float: left; width: 24.5% }  /* One quarter width column for a four column site */
  50. .threequartercolumn { float: left; width: 74.5% }
  51. .twocolumn { float: left; width: 20% }
  52. .sixcolumn { float: left; width: 59% }
  53. /*------------------------------Main Navigation------------------------------------------*/
  54. #nav { position: absolute; top: 145px; left: 0px; height: 25px; width: 100% }
  55. ul#nav  { margin: 0 }
  56. #nav li  /* Main nav list items */
  57. {
  58. font-size: 13px;
  59. float: left;
  60. list-style: none;
  61. text-align: center
  62. }
  63. #nav li a {   /* Main nav styles for all links */
  64. display: block; /* Although display:block suggests a vertical list the float:left property under #nav li causes the menu to float inline */
  65. margin-left: 5px; /* adds a gap between the tabs */
  66. width: 90px;  /* width of the tab */
  67. line-height: 25px; /* height of the tab */
  68. text-decoration: none;
  69. }
  70. #nav a:link, #nav a:visited  { background: url('images/tab.gif') no-repeat 0 -25px }
  71. #nav a:hover, #nav a:active { background: url('images/tab.gif') no-repeat 0 0 }
  72. #nav a#current { background: url('images/tab.gif') no-repeat 0 0 }
  73. /*-----------------------------------Other tags-----------------------------------------*/
  74. acronym { border-bottom: 1px dashed #999; cursor: help }
  75. blockquote { border-top: 2px solid #FFA000; border-bottom: 2px solid #FFA000; margin-left: 1.5em; padding-left: 5px; background-color: #333333}
  76. /* lists */
  77. ul { margin: 5px 0 5px 35px; list-style: url('images/bull.gif') }
  78. ol { margin: 5px 0 5px 35px; list-style: decimal }
  79. ol li, ul li { color: #fff; font-size: 0.8em; line-height: 1.4em }
  80. hr { margin: 10px 0px; height: 1px; background: #444; color: #444 }  /* rule styling */
  81. img {margin: 0 10px} /* all images styling */
  82. img.right {float: right}  /* right floating images */
  83. img.left {float: left}   /* left floating images */
  84. /*-------------------------------------------------------------------------------*/
  85. /* Modification done to basic theme */
  86. #searchdiv {
  87. margin-bottom: 10px;
  88.  margin-left: 5px;
  89. }
  90. h4, h5, h6 {
  91.   font-family: "Georgia", "Times New Roman", Times, serif;
  92.   font-weight: normal;
  93. }
  94. a, a:visited {
  95.     font-weight: bold;
  96.     color: #fff;
  97.     text-decoration: none;
  98. }
  99.    
  100. a:hover {
  101.     text-decoration: underline;
  102. }
  103. /*font: bold 20px/1.1em "Trebuchet MS", "Verdana", sans-serif; }*/       
  104. h3.entrytitle {
  105. padding: 0;
  106. margin-bottom: 10px;
  107. font-family: Verdana, Arial, Helvetica, sans-serif;
  108. font-size: 20px;
  109. line-height: 1.1em;
  110. }
  111. h3.entrytitle a, h3.entrytitle a:visited {
  112. color: #FFA200;
  113. text-decoration: none;
  114. }
  115. h3.entrytitle  a:hover{
  116. color: #FFA200;
  117. text-decoration: underline;
  118. }
  119.    
  120. h3 a {
  121.     text-decoration: none;
  122.     border: 0px none;
  123.     color: #FFA200;
  124. }
  125. div .entrybody h3, div .entrybody h2{
  126. margin-bottom:10px;
  127. color:#B37100;
  128. }
  129.    
  130. h3 a:hover {
  131.     text-decoration: none;
  132.     border: 0px none;
  133.     text-shadow: none;
  134.     color: #333;
  135. }
  136. .firstpost p.comments_link, .entrybody p.comments_link {
  137. margin:0;
  138. }
  139. .firstpost {
  140. background-color: #2E3233;
  141. border: 1px solid #3e4243;
  142. padding: 10px;
  143. margin-bottom:15px;
  144. background-image: url('images/latest.gif');
  145. background-repeat: no-repeat;
  146. background-position: right bottom
  147. }
  148. .entry{
  149. background-color: #2E3233;
  150. border: 1px solid #3e4243;
  151. padding: 10px;
  152. margin-bottom:15px;
  153. color:#FFFFFF;
  154. }
  155. .arc {
  156. border: 1px solid #3e4243;
  157. background-color:#2E3233;
  158. padding:10px;
  159. color:#FFFFFF;
  160. margin-bottom:15px;
  161. }
  162. .entrymeta {
  163. font-size: 11px;
  164. margin-bottom: 15px;
  165. color:#FFFFFF;
  166. }
  167. .entry ul, .entry ol{
  168. margin-left:30px;
  169. list-style:disc;
  170. margin-top:10px;
  171. margin-bottom:10px;
  172. }
  173. .entry ul li, .entry ol li {
  174. padding-top:5px;
  175. line-height:1.5em;
  176. }
  177. /* Sidebar styling*/
  178. #sidebar {
  179. margin-top: 0px;
  180. margin-right: 5px;
  181. margin-bottom: 10px;
  182. margin-left: 5px;
  183. background-color: #2E3233;
  184. padding:5px;
  185. color:#dddddd;
  186. border: 1px solid #3e4243;
  187. }
  188. #sidebar h2 {
  189. font-weight: bold;
  190. text-transform: uppercase;
  191. color: #dddddd;
  192. font-size: 110%;
  193. border-bottom-width: 1px;
  194. border-bottom-style: solid;
  195. border-bottom-color: #555;
  196. margin-bottom: 10px;
  197. }
  198. #sidebar p{
  199. margin: 7px;
  200. color:#999999;
  201. line-height: 1.4em;
  202. }
  203. #sidebar a, #sidebar a:visited {
  204. color:#ffa200;
  205. text-decoration:none;
  206. }
  207. #sidebar a:hover {
  208. color:#ffa200;
  209. text-decoration:underline;
  210. }
  211. #sidebar ul li {
  212. list-style-type: none;
  213. list-style-image: url('none');
  214. margin-bottom: 15px;
  215. margin-left: 10px
  216. }
  217. #sidebar ul p, #sidebar ul select {
  218. margin: 5px 0 8px;
  219. }
  220. #sidebar ul ul, #sidebar ul ol {
  221. margin: 5px 0 0 10px;
  222. }
  223. #sidebar ul ul ul, #sidebar ul ol {
  224. margin: 0 0 0 10px;
  225. }
  226. ol li, #sidebar ul ol li {
  227. list-style: decimal outside;
  228. }
  229. #sidebar ul ul li, #sidebar ul ol li {
  230. margin-top: 3px;
  231. margin-right: 0em;
  232. margin-bottom: 0em;
  233. margin-left: 0.5em;
  234. padding-top: 0.1em;
  235. padding-right: 0;
  236. padding-bottom: 0.1em;
  237. padding-left: 0;
  238. list-style-type: none;
  239. list-style-position: outside;
  240. list-style-image: url('images/bull.gif');
  241. }
  242. /* Menu */
  243. #menu dl, dt, dd, ul, li {
  244. margin: 0;
  245. padding: 0;
  246. list-style-type: none;
  247. }
  248. #menu {
  249. float:left;
  250. z-index:100;
  251. width:100%; /* correction pour Opera */
  252. padding-left: 180px;
  253. background:url(pagebar_bg.gif);
  254. height: 37px;
  255. }
  256. #menu dl {
  257. float: left;
  258. width:auto
  259. }
  260. #menu dt {
  261. cursor: pointer;
  262. text-align: center;
  263. font-weight: normal;
  264. height: 37px;
  265. line-height: 37px;
  266. }
  267. #menu dt a {
  268. color: #fff;
  269. font-family: "Trebuchet MS", Verdana, Arial, Sans-Serif;
  270. font-size: 0.8em;
  271. text-decoration: none;
  272. font-weight:normal;
  273. padding: 0px 10px 0px 10px;
  274. display: block;
  275. height: 100%;
  276. border: 0 none;
  277. }
  278. #menu dd {
  279. display: none;
  280. border:#292929 px solid;
  281. border-top: none;
  282. width: auto;
  283. position:absolute;
  284. }
  285. #menu li {
  286. text-align: left;
  287. background-color: #2C2C2C;
  288. filter: alpha(opacity=65); 
  289. -moz-opacity: 0.65;
  290. -khtml-opacity: 0.65;
  291. opacity: 0.65;
  292. }
  293. #menu li a {
  294. text-decoration: none;
  295. display: block;
  296. height: 100%;
  297. border: 0 none;
  298. color: #FFFFFF;
  299. font-family: "Trebuchet MS", Verdana, Arial, Sans-Serif;
  300. font-size: 0.8em;
  301. font-weight:normal;
  302. white-space:nowrap;   /* pour IE qui elargira les listes a la demande */
  303. }
  304. #menu li a:hover, #menu li a:focus{
  305. background:#808080;
  306. color: #FFFFFF;
  307. font-family: "Trebuchet MS", Verdana, Arial, Sans-Serif;
  308. font-weight:normal;
  309. font-size: 0.8em;
  310. }
  311. #menu dt a:hover, #menu dt a:focus {
  312. background:url('pagebar_bg2.gif');
  313. }
  314. #menu #active a
  315. {
  316. background-image: url('pagebar_bg4.gif');
  317. }

n°1458455
ersatz
Posté le 17-10-2006 à 01:11:32  profilanswer
 

Résoluuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu! :D

n°1458456
gatsu35
Blablaté par Harko
Posté le 17-10-2006 à 01:19:08  profilanswer
 

Ya une chose que tu n'aurais jamais du faire :  
div { padding: 10px 0;}
Ca c'est une énorme erreur, car le div est la balise de base en HTML, une balise sans valeur sémantique et donc qui sert un peu pour tout. Et lui rajouter un padding par défaut pour TOUT est une énorme erreur

n°1458458
ersatz
Posté le 17-10-2006 à 01:49:05  profilanswer
 

Hey t'aurai pas le dire plus tot :D  
Non je déconne, mais en tout cas bien vu! parceque c'était ça la merde (entre autre) du thème  :fou: !
D'ailleurs, même étant un noob total, je suis d'accord avec toi, et j'ai du mal à croire que le gars qui ait codé ce truc (y'a certains passages assez chaud) ait fait une boulette pareille.
 
merci en tout cas  :hello:

n°1458479
gatsu35
Blablaté par Harko
Posté le 17-10-2006 à 07:36:29  profilanswer
 

Tu parles du menu ou du theme, car la CSS mise à part le menu est un peu pourridans certains coins

n°1458582
ersatz
Posté le 17-10-2006 à 11:03:56  profilanswer
 

ben tout, css, le xhtml, ou niveau de commandes php il me semblait qu'il gérait pas mal.
Dis moi si tu vois d'autres boulettes.


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  HTML/CSS

  Conflits entre menu et thème CSS

 

Sujets relatifs
[CSS] Bug d'affichage IE (encore)Cherche une propriété CSS
question adressage menuMenu de catégories
IE et CSSRollOver Sur menu
[CSS] Blocs de textes qui reviennent à la ligne ???[RESOLU] Menu déroulant en HTML
[CSS]Lien fichier CSS
Plus de sujets relatifs à : Conflits entre menu et thème CSS


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR