Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: Problem ze stroną na divach...
Forum PHP.pl > Forum > Po stronie przeglądarki
vieri_pl
Oto część kodu mojej strony:
  1. <div id="zawartosc">
  2. <div id="naglowek">
  3.  
  4. </div>
  5. <div id="lewe_menu">
  6. <p>
  7. <div id="menu">
  8. <ul>
  9. <li><a href="#">O mnie </a>
  10. <ul>
  11. <li><a href="#">Info</a></li>
  12. <li><a href="#">Sukcesy w sieci </a></li>
  13. </ul>
  14. </li>
  15. <li><a href="#">Zainteresowania</a>
  16. <ul>
  17. <li><a href="#">Piłka Nożna </a></li>
  18. <li><a href="#">Programowanie</a></li>
  19. </ul>
  20. </li>
  21. <li><a href="#">Moje prace </a>
  22. <ul>
  23. <li><a href="#">Skrypty</a></li>
  24. <li><a href="#">Grafika</a></li>
  25. </ul>
  26. </li>
  27. </ul>
  28. </div>
  29. </p>
  30. </div>


Validator xhtml pokazuje błąd:

Error Line 133, column 14: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag .

<div id="menu">

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").


Wszystko dobrze sie wyświetla dlaczego pokazuje błąd questionmark.gif
glock14
Mi sie wydaje, ze div nie moze byc w akapicie <p> (moge sie mylic).

Usuń <p> i sprawdź smile.gif
vieri_pl
Dzięki działa exclamation.gif!
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.