Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML] a walidator i <style>
right6
post
Post #1





Grupa: Zablokowani
Postów: 206
Pomógł: 0
Dołączył: 9.03.2006

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


jak mozna umiescic akrusze stylow wewnatrz dokumentu, w sekcji body, aby walidator XHTML sie ni plul questionmark.gif?

daje <style></style> jest zle
daje <script type="text/css"></script> jest zle ohmy.gif


--------------------
To ja invx sie nazywam ... przepraszam i dziekuje ...
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 10)
kmk2000
post
Post #2





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 8.05.2006

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


wystarczy ze zastosujesz:
Kod
<style type="text/css">
<!--
kod css
-->
</style>

i sie nie pluje
Go to the top of the page
+Quote Post
right6
post
Post #3





Grupa: Zablokowani
Postów: 206
Pomógł: 0
Dołączył: 9.03.2006

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


du**

Kod
<style type="text/css">

The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).


--------------------
To ja invx sie nazywam ... przepraszam i dziekuje ...
Go to the top of the page
+Quote Post
Vogel
post
Post #4





Grupa: Zarejestrowani
Postów: 402
Pomógł: 0
Dołączył: 20.01.2003

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


bo ma byc zewnetrzny arkusz CSS!


--------------------
Go to the top of the page
+Quote Post
right6
post
Post #5





Grupa: Zablokowani
Postów: 206
Pomógł: 0
Dołączył: 9.03.2006

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


no wlasnie caly problem w tym ze potrzebuje go umiescic w body, i nie chce robic src=


--------------------
To ja invx sie nazywam ... przepraszam i dziekuje ...
Go to the top of the page
+Quote Post
Kuziu
post
Post #6





Grupa: Zarejestrowani
Postów: 743
Pomógł: 0
Dołączył: 11.11.2003
Skąd: Toruń

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


Nie rozumię dlaczego nie możesz go dać w pliku CSS ? i dołączyć w Head ?


--------------------
Słońce zachodzi ... kolejna noc nadchodzi ...
Go to the top of the page
+Quote Post
maverickkk
post
Post #7





Grupa: Zarejestrowani
Postów: 181
Pomógł: 0
Dołączył: 12.11.2005

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


Zmień DOCTYPE na starszy i olej XHTML skoro musisz go umieścić w tym samym pliku.

Ten post edytował maverickkk 8.05.2006, 21:51:49


--------------------
Robie to co lubie, lubie to co Robie
Go to the top of the page
+Quote Post
kmk2000
post
Post #8





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 8.05.2006

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


lol to formułuje sie pytania tak zeby wiadomo bylo o co chodzi
  1. <link rel="stylesheet" type="text/css" href="style.css" />
Go to the top of the page
+Quote Post
right6
post
Post #9





Grupa: Zablokowani
Postów: 206
Pomógł: 0
Dołączył: 9.03.2006

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


lol kmk2000 - wyraznei napisalem, ze ze nie ma byc src. Jak sie wchodzi sie czyta.


--------------------
To ja invx sie nazywam ... przepraszam i dziekuje ...
Go to the top of the page
+Quote Post
stoprocent
post
Post #10





Grupa: Zarejestrowani
Postów: 338
Pomógł: 2
Dołączył: 17.05.2003
Skąd: Kraków , Londyn

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


Cytat
bo ma byc zewnetrzny arkusz CSS!


Nie musi.

right6 : z jakiego naglowka korzystasz?

prosze oto przyklad

Strona z cssem w pliku html
http://clients.demomedia.co.uk/sp/
i validacja tej strony
http://validator.w3.org/check?verbose=1&ur...edia.co.uk%2Fsp


--------------------
Go to the top of the page
+Quote Post
kwiateusz
post
Post #11


Admin Techniczny


Grupa: Administratorzy
Postów: 2 071
Pomógł: 93
Dołączył: 5.07.2005
Skąd: Olsztyn




Cytat(right6 @ 2006-05-08 22:30:08)
no wlasnie caly problem w tym ze potrzebuje go umiescic w body, i nie chce robic src=

body questionmark.gif css odkad pamietam umieszczalo sie w head ...
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 Aktualny czas: 21.08.2025 - 18:44