Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [HTML][CSS]Problem z połączeniem menu z logiem
Forum PHP.pl > Forum > Przedszkole
xxdrago
Witam mam taki problem; co tutaj jest źle że menu nie che się łączyć z logiem?
link; http://ogar200.cba.pl/demo/
CSS;

  1. *{ margin: 0; padding: 0; }*
  2. body { font: .8em Arial, Sans-Serif; line-height: 1.8em; background: #333; color: #444; }
  3.  
  4. #header {
  5. background: #FE7B09 url(images/header.jpg) repeat-x;
  6. height: 215px;
  7. }
  8. #menu {
  9. height: 30px;
  10. line-height: 32px;
  11. background: #fff url(images/bg.jpg) repeat-x;
  12. }
  13. #menu ul {
  14. list-style-type: none;
  15. padding-left: 60px;
  16. }
  17. #menu ul li {
  18. display: block;
  19. float: left;
  20. }
  21. #menu ul li a {
  22. padding: 0 20px 0 0;
  23. text-decoration: none;
  24. font-weight: 600;
  25. font-size: 12px;
  26. color: white;
  27. }
  28. #menu ul li a:hover {
  29. color: white;
  30. text-decoration: none;
  31. }
  32. a {COLOR: #6587E0; text-decoration: none;}
  33. a:visited {COLOR: #6587E0; text-decoration: none;}
  34. a:hover {COLOR: #333; text-decoration: underline;}
  35. h2 { margin: 0 0 10px; padding: 10px 0 3px; }
  36. h3 { padding-left: 10px; color: #fff; background: #FE7B09 url(images/bg.jpg) repeat-x; font-size: 1em; height: 24px; line-height: 24px; }
  37. ul { padding: 0; margin: 0 0 10px;}
  38. li { list-style-type: none;}
  39. p { margin: 5px 0 10px 0; }
  40. img { border: none; }
  41.  
  42. #wrap { padding: 10px 10px 3px 10px; width: 760px; margin:20px auto; background: #fff;}
  43. #left { float: left; width: 180px; background: #CFDDFF; margin-bottom: 10px; margin-top: 20px;}
  44. #left ul { padding: 5px 10px 10px 10px; margin: 0; }
  45. #right { margin-bottom: 10px; float: right; width: 550px; padding: 0 10px 10px 10px; margin-top: 10px;}
  46.  
  47. #footer { font-size: 11px; text-align: center; border-top: 1px solid #ccc; padding: 10px 5px; }


HTML;
  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. <title>xxx</title>
  4. </head>
  5.  
  6. <div id="wrap">
  7. <div id="header">
  8. </div>
  9. <div id="menu">
  10. <ul>
  11. <li><a href="index.html">Strona Główna</a></li>
  12. <li><a href="omnie.html">O mnie</a></li>
  13. <li><a href="tuning-mechaniczny.html">Tuning Mechaniczny</a></li>
  14. <li><a href="tuning-wizualny.html">Tuning Wizualny</a></li>
  15. <li><a href="filmy.html">Filmiki</a></li>
  16. <li><a href="galeria.html">Galeria</a></li>
  17. <li><a href="dane-ogar200.html">Dane</a></li>
  18. <li><a href="kontakt.html">Kontakt</a></li>
  19. </ul>
  20. </div>
  21. <div id="right">
  22.  
  23. <h2><a href="#">License and terms of use</a></h2>
  24. <div class="articles">
  25. Flower is a CSS template that is free and fully standards compliant. <a href="http://www.free-css-templates.com/">Free CSS Templates</a> designed this template.
  26. This template is allowed for all uses, including commercial use, as it is released under the <strong>Creative Commons Attributions 2.5</strong> license. The only stipulation to the use of this free template is that the links appearing in the footer remain intact. Beyond that, simply enjoy and have fun with it!
  27. <br /><br />
  28. <img src="images/pic.jpg" alt="Example pic" style="border: 3px solid #ccc;" />
  29. <br /><br />
  30. Donec nulla. Aenean eu augue ac nisl tincidunt rutrum. Proin erat justo, pharetra eget, posuere at, malesuada
  31. et, nulla. Donec pretium nibh sed est faucibus suscipit. Nunc nisi. Nullam vehicula. In ipsum lorem, bibendum sed,
  32. consectetuer et, gravida id, erat. Ut imperdiet, leo vel condimentum faucibus, risus justo feugiat purus, vitae
  33. congue nulla diam non urna.
  34. </div>
  35. <h2><a href="#">Title with a link - Example of heading 2</a></h2>
  36. <div class="articles">
  37. Donec nulla. Aenean eu augue ac nisl tincidunt rutrum. Proin erat justo, pharetra eget, posuere at, malesuada
  38. et, nulla. Donec pretium nibh sed est faucibus suscipit. Nunc nisi. Nullam vehicula. In ipsum lorem, bibendum sed,
  39. consectetuer et, gravida id, erat. Ut imperdiet, leo vel condimentum faucibus, risus justo feugiat purus, vitae
  40. congue nulla diam non urna.
  41. </div>
  42. </div>
  43.  
  44. <div id="left">
  45.  
  46. <h3>Categories :</h3>
  47. <ul>
  48. <li><a href="#">World Politics</a></li>
  49. <li><a href="#">Europe Sport</a></li>
  50. <li><a href="#">Networking</a></li>
  51. <li><a href="#">Nature - Africa</a></li>
  52. <li><a href="#">SuperCool</a></li>
  53. <li><a href="#">Last Category</a></li>
  54. </ul>
  55.  
  56. <h3>Archives</h3>
  57. <ul>
  58. <li><a href="#">January 2007</a></li>
  59. <li><a href="#">February 2007</a></li>
  60. <li><a href="#">March 2007</a></li>
  61. <li><a href="#">April 2007</a></li>
  62. <li><a href="#">May 2007</a></li>
  63. <li><a href="#">June 2007</a></li>
  64. <li><a href="#">July 2007</a></li>
  65. <li><a href="#">August 2007</a></li>
  66. <li><a href="#">September 2007</a></li>
  67. <li><a href="#">October 2007</a></li>
  68. <li><a href="#">November 2007</a></li>
  69. <li><a href="#">December 2007</a></li>
  70. </ul>
  71.  
  72. </div>
  73. <div style="clear: both;"> </div>
  74.  
  75. <div id="footer">
  76. <a href="http://www.XxDrago.pl/" target="_blank">Website by XxDrago.pl</a> <b>Wszystkie elementy zawarte na stronie są chronione <u>prawem autorskim.</u></b>
  77. </div>
  78. </div>
  79.  
  80.  
  81. </body>
  82. </html>
sadistic_son
Linijka 37:
  1. ul { padding: 0; margin: 0 0 10px;}
Wywal zupełnie margin:
  1. ul { padding: 0; }
A właściwie to cały ten styl możesz wyrzućić, bo margin jest powodem Twojego problemu a ten padding i tak nic nie zmienia. Wywal linijke 37 i już.
xxdrago
chciałem zrobić żeby było bez błędów ale w validator są błędy:
kod;

Kod
<a href="http://www.XxDrago.pl/" TARGET="_blank" >Website by XxDrago.pl</a> <b>Wszystkie elementy zawarte na stronie są chronione <u> prawem autorskim. </u></b>


błedy;
Kod
Line 97, Column 41: there is no attribute "TARGET"

Line 97, Column 133: element "u" undefined


nie rozumiem co tu jest źle.. prosze o pomoc
sadistic_son
Znaczniki <u>, <b>, <i>, parametr target itd. uznane zostały przez W3C za przestarzałe. Zamiast nich stosować należy style CSS. Puki będziesz je stosować strona walidacji nie przejdzie.
Zamiast target możesz użyć tego:
[JAVASCRIPT] pobierz, plaintext
  1. <script type="text/javascript">
  2. $(function(){
  3. $('a[rel="external"]').attr('target','_blank');
  4. });
  5. </script>
  6. <a rel="external" href="http://www.google.com">Google in new Window</a>
[JAVASCRIPT] pobierz, plaintext
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.