Cau, tak mam zase dalsi problem. Na svych strankach (www.vip.xf.cz), pouzivam tag object, do ktereho davam tag div (chce to po mne standart xhtml1.0 podle ktereho pisu). Problem je v tom, ze po IE se zobrazi jen takove ctverecky. Pod FF jede vse v pohode. Jak to mam udelat aby se obsah tagu object zobrazil. Diky moc
jak jsi na to prisel, ze po tobe norma xhtml1.0 chce div v objectu?
<!--==================== Object ======================================-->
<!--
object is used to embed objects as part of HTML pages.
param elements should precede other content. Parameters
can also be expressed as attribute/value pairs on the
object element itself when brevity is desired.
-->
<!ELEMENT object (#PCDATA | param | %block; | form | %inline; | %misc;)*>
<!ATTLIST object
%attrs;
declare (declare) #IMPLIED
classid %URI; #IMPLIED
codebase %URI; #IMPLIED
data %URI; #IMPLIED
type %ContentType; #IMPLIED
codetype %ContentType; #IMPLIED
archive %UriList; #IMPLIED
standby %Text; #IMPLIED
height %Length; #IMPLIED
width %Length; #IMPLIED
usemap %URI; #IMPLIED
name NMTOKEN #IMPLIED
tabindex %Number; #IMPLIED
>
<!--
param is used to supply a named property value.
In XML it would seem natural to follow RDF and support an
abbreviated syntax where the param elements are replaced
by attribute value pairs on the object start tag.
-->
<!ELEMENT param EMPTY>
<!ATTLIST param
id ID #IMPLIED
name CDATA #IMPLIED
value CDATA #IMPLIED
valuetype (data|ref|object) "data"
type %ContentType; #IMPLIED
>
http://www.w3.org/TR/2002/REC-xhtml1-20020801/dtds.html#dtdentry_xhtml1-strict.dtd_object
No to bylo silene to co jste napsal. Nerozumel jsem nicemu. Nicmene reseni bylo nasledujici:
Ja jsem psal takto <p><object><div>, ale spravne poradi je takto <object><div><p>
XHTML 1.0 nevyzaduje DIV v OBJECTu
ale vysvětli mu to... :-)
Ondra: njn, tvorba webovych stranek neni jenom o tom, naucit se deset tagu a umet je zapsat. Je potreba znat pravidla, resp. vedet, kde je najit, a umet je precist. Pokud ten DIV davas do OBJECT jenom proto, aby to tak nejak korespondovalo s dtd, neco asi bude spatne.
Nevim, kdo to rekl, ale je to svata pravda: i validni kod muze bejt pekna prasarna.