Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> CSS Validator Error, Please, validate your XML document first
devint
post 27.11.2005, 14:14:19
Post #1





Grupa: Zarejestrowani
Postów: 68
Pomógł: 0
Dołączył: 16.05.2005

Ostrzeżenie: (10%)
X----


Hej

nie rozumiem o co chodzi moze ktos mial ten komunikat lub wie jak to rozwiazac:

Kod
Please, validate your XML document first!

Line 66

Column 87

Element type "img" must be followed by either attribute specifications, ">" or "/>".


I tutaj linie po kolei (wstawilem numery 64-67 na szybko normalnie ich oczywiscie nie ma):
  1. 64 <tr>
  2. 65<!-- black border -->
  3. 66<td><img src="images/middle_menu_left.gif" alt="" width="3" height="42"border="0"/></td>
  4. 67<td><p class="menu01"><a href="">HARDWARE</a></p></td>


Tym bardziej nie kumam bo wszystko jest XHTML 1.0 Trans. Valid

z gory dzieki za odzew
Go to the top of the page
+Quote Post
DavidPL
post 27.11.2005, 14:38:59
Post #2





Grupa: Zarejestrowani
Postów: 66
Pomógł: 1
Dołączył: 27.04.2004
Skąd: Rzeszów

Ostrzeżenie: (0%)
-----


Pomysły mam dwa:
1. Brak spacji pomiędzy 'height="42"' a 'border="0"'
2. Brak spacji pomiędzy 'border="0"' a '/>'

Skłaniał bym się do tego pierwszego bo i ile wiem drugie nie powinno stwarzać żadnych problemów, ale sprawdzić warto.

--
Dawid Szałęga


--------------------
Pozdrawiam,
Dawid
Go to the top of the page
+Quote Post
devint
post 27.11.2005, 15:48:52
Post #3





Grupa: Zarejestrowani
Postów: 68
Pomógł: 0
Dołączył: 16.05.2005

Ostrzeżenie: (10%)
X----


miales racje dzieki

nie wiem czemu ale mam tendencje do wywalania sie na takich pierdolkach, no coz mozna sie smiac

pozdr
Go to the top of the page
+Quote Post
Balas
post 27.11.2005, 18:25:53
Post #4





Grupa: Zarejestrowani
Postów: 347
Pomógł: 0
Dołączył: 27.08.2005
Skąd: Inowrocław

Ostrzeżenie: (0%)
-----


Nie chce zakładac nowego temaatu wiec pisze w tym.

W validatorze wyskakuje mi tylko takie cos:
Cytat
Error  Line 31 column 6: end tag for "head" which is not finished.

</head>

Most likely, You nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p>

Another possibility is that you used an element which requires a child element that you did not include. Hence the parent element is "not finished", not complete. For instance, <head> generally requires a <title>, lists (ul, ol, dl) require list items (li, or dt, dd), and so on.


A to mam przed head (i samo head)

  1. <!DOCTYPE html
  2. PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
  5. <style type="text/css">
  6. body {margin: 0px; background-image: url("./images/bg.gif"); margin:0; padding:0; height:100%; text-align:center; color: #fff;}
  7. img {border: 0px; margin: 0px; padding: 0px;}
  8.  
  9. #glowny {margin: 0 auto; width: 804px; text-align: justify;}
  10. #text-bar {width: 100%; height: 18px; background-image: url("./images/top-text-bar.jpg"); font-size: 12px; text-align: left; vertical-align: center;}
  11. #text-bar h1 {font-size: 12px; margin:0px 10px 0px 10px; font-weight: bold; font-family: Verdana; color: #000;}
  12. #logo{width: 100%; height: 150px; background-image: url("./images/logo.jpg"); font-size: 0px;}
  13. #top-menu{width: 100%; height: 52px;}
  14. #top-menu-items{width: 100%; height: 40px; padding: 0px; margin: 0px;}
  15. #body {float: right; background-image: url("./images/body-bg.jpg");}
  16. #menu {width: 162px; left: 0px; float: left;}
  17. #other {width: 642px; right: 0px; float: right;}
  18. #footer-text {width: 100%; height:40px; background-image: url("./images/footer.jpg"); float: right;}
  19. #nav {width: 100%; background-image: url("./images/nawigacja.gif"); background-repeat: no-repeat; padding: 30px 20px 0px 20px;}
  20. #nav a {color: #aaa; text-decoration: none; font-size:13px; font-family: arial;}
  21. #nav a:hover {color: #eee; text-decoration: underline; font-size:13px; font-family: arial;}
  22.  
  23. .metaldream {width: 100%; padding: 30px 20px 0px 20px;}
  24. .metaldream a {color: #aaa; text-decoration: none; font-size:13px; font-family: arial;}
  25. .metaldream a:hover {color: #eee; text-decoration: underline; font-size:13px; font-family: arial;}
  26. .header-bar{width: 100%; height:12px; background-image: url("./images/header-bar.jpg"); font-size: 0px;}
  27. .bar {width: 100%; height:12px; background-image: url("./images/bar.jpg"); font-size: 0px;}
  28.  
  29. </head>


Wszystkie tagi (chyba) mam pozamykane wiec o co chodzi questionmark.gif :|


--------------------
Go to the top of the page
+Quote Post
Fipaj
post 27.11.2005, 19:19:38
Post #5





Grupa: Zarejestrowani
Postów: 691
Pomógł: 0
Dołączył: 19.01.2005
Skąd: Warszawa

Ostrzeżenie: (0%)
-----


Jakbyś CSS z pliku zewnętrznego to powinno działać, a jak się koniecznie upierasz przy nieinkludowaniu innych plików, to:
  1. <style...>
  2. <![CDATA[
  3. ...
  4. ]]!>


--------------------
Go to the top of the page
+Quote Post
Zajec
post 27.11.2005, 19:31:47
Post #6





Grupa: Zarejestrowani
Postów: 1 086
Pomógł: 8
Dołączył: 10.12.2003

Ostrzeżenie: (0%)
-----


Cytat(Fipaj @ 2005-11-27 19:19:38)
Jakbyś CSS z pliku zewnętrznego to powinno działać, a jak się koniecznie upierasz przy nieinkludowaniu innych plików, to:

Sprawdź, a nie strzelaj.

Dokumenty (X)HTML muszą mieć nadany title. Ty go nie masz :-) Validator, czepia się więc, że zamknąłeś już head, a title pozostał nieznany.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 29.06.2025 - 23:55