probleme avec menu (css + xhtml)

probleme avec menu (css + xhtml) - HTML/CSS - Programmation

Marsh Posté le 27-08-2004 à 18:43:10    

J'ai un probleme avec les bordures de mon menu, lorsque je survole un lien le "marging" du bas disparrait avec IE (pas sous mozilla).
 
-> TEST
 
http://romain.2dlb.com/divers/01.png http://romain.2dlb.com/divers/02.png
 
 :pt1cable:

Reply

Marsh Posté le 27-08-2004 à 18:43:10   

Reply

Marsh Posté le 28-08-2004 à 15:20:56    

Code :
  1. #left {
  2. text-align: left;
  3. float: left;
  4. width: 150px;
  5. }
  6. #menu {
  7. font-family: Verdana, Arial;
  8. font-size: 10px;
  9. font-weight: bold;
  10. color: #a7a7a7;
  11. text-decoration: none;
  12. text-align: left;
  13. padding: 10px;
  14. border-width: 1px;
  15. border-style: dashed;
  16. border-color: #a7a7a7;
  17. margin: 10px;
  18. background-color: #ffffff;
  19. background-image: url(content/table_back.png);
  20. }
  21. #menubg {
  22. background-color: #999999;
  23. border-width: 1px;
  24. border-style: dashed;
  25. border-color: #a7a7a7;
  26. float: left;
  27. width: 130px;
  28. }
  29. #menu a {
  30. font-family: Verdana, Arial;
  31. font-size: 10px;
  32. font-weight: bold;
  33. color: #a7a7a7;
  34. text-decoration: none;
  35. }
  36. #menu a:hover {
  37. font-size: 10px;
  38. color: #999999;
  39. font-family: Verdana;
  40. background-color: #cccccc;
  41. text-decoration: none;
  42. }


 
je vois pas en quoi le fait de passer sur un lien du menu peut interférer dans le marging bottom de mon div menu.  :fou: (saleté d'IE)
 
quelqu'un a une idée?


Message édité par fitterashes le 29-08-2004 à 01:05:57
Reply

Marsh Posté le 28-08-2004 à 15:56:58    

dans le "a:hover" pourquoi tu respécifies des attributs qui sont déjà dans les "a" ?

Reply

Marsh Posté le 28-08-2004 à 18:20:16    

exact, mais bon ca change rien.

Reply

Marsh Posté le 30-08-2004 à 12:07:26    

http://yelims.free.fr/Coucou/Coucou20.gif

Reply

Marsh Posté le 30-08-2004 à 16:52:16    

Je t'ai fait ça. J'espère que tu pourras en tirer partie.
 

Code :
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  5. <title>Youpi</title>
  6. <style type="text/css">
  7. body {
  8. background: #FFF;
  9. color: #EEE;
  10. font-size: 10px;
  11. font-family: verdana;
  12. }
  13. div#left {
  14. text-align: center;
  15. float: left;
  16. width: 150px;
  17. }
  18. div#menubg {
  19. background: #999999;
  20. border: 1px dashed #a7a7a7;
  21. width: 130px;
  22. }
  23. ul#menu {
  24. list-style-type: none;
  25. font-weight: bold;
  26. color: #a7a7a7a7;
  27. text-align: left;
  28. padding: 10px;
  29. border: 1px dashed #a7a7a7;
  30. background: #FFF url(content/table_back.png);
  31. margin: 10px;
  32. }
  33. ul#menu a {
  34. font-weight: bold;
  35. color: #a7a7a7;
  36. text-decoration: none;
  37. }
  38. ul#menu a:hover {
  39. color: #999999;
  40. background: #cccccc;
  41. }
  42. ul#menu li.plusloin {
  43. margin-top: 10px;
  44. }
  45. form#searchbox {
  46. border: 1px dashed #a7a7a7;
  47. background: #FFF;
  48. }
  49. form#searchbox label {
  50. color: #000;
  51. }
  52. form#searchbox input {
  53. width: 110px;
  54. height: 14px;
  55. background: #a7a7a7;
  56. }
  57. </style>
  58. </head>
  59. <body>
  60. <div id="left">
  61. <div id="menubg">
  62.   <ul id="menu">
  63.    <li><a href="#">/home</a></li>
  64. <li><a href="#">/news</a></li>
  65. <li><a href="#">/concerts</a></li>
  66. <li><a href="#">/photos</a></li>
  67. <li><a href="#">/multimedia</a></li>
  68. <li><a href="#">/discography</a></li>
  69. <li><a href="#">/biography</a></li>
  70. <li><a href="#">/lyrics</a></li>
  71. <li><a href="#">/forum</a></li>
  72. <li><a href="#">/links</a></li>
  73.    <li class="plusloin"><a href="#">/archives</a></li>
  74.   </ul>
  75.   <form id="searchbox" action="" method="">
  76.    <label for="search">Recherche</label>
  77.    <input type="text" id="search" name="search" />
  78.   </form>
  79. </div>
  80. </div>
  81. </body>
  82. </html>

Reply

Marsh Posté le 31-08-2004 à 20:06:16    

[:arn0] merci beaucoup.


Message édité par fitterashes le 31-08-2004 à 20:07:00
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed