jak mozna umiescic akrusze stylow wewnatrz dokumentu, w sekcji body, aby walidator XHTML sie ni plul ?
daje <style></style> jest zle daje <script type="text/css"></script> jest zle
kmk2000
8.05.2006, 20:02:25
wystarczy ze zastosujesz:
Kod
<style type="text/css"> <!-- kod css --> </style>
i sie nie pluje
right6
8.05.2006, 20:26:32
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).
Vogel
8.05.2006, 21:14:10
bo ma byc zewnetrzny arkusz CSS!
right6
8.05.2006, 21:30:08
no wlasnie caly problem w tym ze potrzebuje go umiescic w body, i nie chce robic src=
Kuziu
8.05.2006, 21:35:41
Nie rozumię dlaczego nie możesz go dać w pliku CSS ? i dołączyć w Head ?
maverickkk
8.05.2006, 21:51:26
Zmień DOCTYPE na starszy i olej XHTML skoro musisz go umieścić w tym samym pliku.
kmk2000
9.05.2006, 17:18:14
lol to formułuje sie pytania tak zeby wiadomo bylo o co chodzi