|
|||
Habe hier ein dummes Problem:
Es wird gesagt: # Error Line 147, Column 20: document type does not allow element "h2" here; missing one of "th", "td" start-tag <h2 class="dots" > ✉ 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>"). Wie behebe ich das? |
Sponsored Links |
|
||||
indem du dir mal ganz einfach anschaust was du für Code dort verwendest:
HTML-Code:
<div class="page_content" style="width:425px;padding-right:0px;"> <table class="blog" cellpadding="0" cellspacing="0"> <tr> <td valign="top"> <div> <table class="contentpaneopen"> <tr> <h2 class="dots" > Home </td> Des weiteren ist das h2 Tag nicht geschlossen.
__________________
Hier ein immer gültiges Statement: Überarbeite deine Code, lerne die Grundlagen, widersprich mir nicht, wehre dich nicht, ich habe Recht, wir sind Lolgion, wir sind viele.. potato... All meine Angaben sind ohne Gewähr, es könnte also trotz meiner Unfehlbarkeit dazu kommen dass ich falsch liege www.richard-thiel.de | Müssen Websiten überall gleich ausschauen? |
Sponsored Links |
|
|||
Mein Code sieht so aus...
Code:
<table class="contentpaneopen<?php echo $this->escape($this->item->params->get( 'pageclass_sfx' )); ?>"> <tr> <?php if ($this->item->params->get('show_title')) : ?> <h2 class="dots<?php echo $this->escape($this->item->params->get( 'pageclass_sfx' )); ?>" width="100%"> <?php if ($this->item->params->get('link_titles') && $this->item->readmore_link != '') : ?> <a href="<?php echo $this->item->readmore_link; ?>" class="contentpagetitle<?php echo $this->escape($this->item->params->get( 'pageclass_sfx' )); ?>"> <?php echo $this->escape($this->item->title); ?></a> <?php else : ?> <?php echo $this->escape($this->item->title); ?> <?php endif; ?> </td> <?php endif; ?> <?php if ($this->item->params->get('show_pdf_icon')) : ?> <td align="right" width="100%" class="buttonheading"> <?php echo JHTML::_('icon.pdf', $this->item, $this->item->params, $this->access); ?> </td> <?php endif; ?> <?php if ( $this->item->params->get( 'show_print_icon' )) : ?> <td align="right" width="100%" class="buttonheading"> <?php echo JHTML::_('icon.print_popup', $this->item, $this->item->params, $this->access); ?> </td> <?php endif; ?> <?php if ($this->item->params->get('show_email_icon')) : ?> <td align="right" width="100%" class="buttonheading"> <?php echo JHTML::_('icon.email', $this->item, $this->item->params, $this->access); ?> </td> <?php endif; ?> <?php if ($canEdit) : ?> <td align="right" width="100%" class="buttonheading"> <?php echo JHTML::_('icon.edit', $this->item, $this->item->params, $this->access); ?> </td> <?php endif; ?> </tr> </table> |
|
|||
Auch da sieht man deutlich die Fehler.
Was genau verstehst du denn an den Meldungen des Validators (und Thielos Erläuterung) nicht?
__________________
Corina Rudel Online-Einsteigerkurs HTML/CSS | Buch: Fortgeschrittene CSS-Techniken |
|
|||
Bitte.
Es gibt aber nach wie vor jede Menge Fehler.
__________________
Corina Rudel Online-Einsteigerkurs HTML/CSS | Buch: Fortgeschrittene CSS-Techniken |
|
|||
Die gehen aber irgendwie nicht raus... Habe sie zwar übers Backend raus genommen, aber er wirft mir sie wieder rein. Bzw. manche brauche ich sonst stimmt die Darstellung wieder nicht.... Aber sieht jetzt alles wieder richtig aus...
Vielen Dank, auch wenn ich mich sehr dumm angestellt habe.. |
|
|||
Das bezweifle ich.
Wenn ein tr-Element fehlt, hast du es eben nicht in den Code reingeschrieben. Wenn Blockelemente in Links stehen hast du sie hineingesetzt. Davon abgesehen sind die Layouttabellen nur eines: überflüssig. Zitat:
__________________
Corina Rudel Online-Einsteigerkurs HTML/CSS | Buch: Fortgeschrittene CSS-Techniken |
Themen-Optionen | |
Ansicht | |
|
|
Ähnliche Themen | ||||
Thema | Autor | Forum | Antworten | Letzter Beitrag |
Darstellungsprobleme im IE! Dringend! Bitte helft! | dari68 | Site- und Layoutcheck | 4 | 21.08.2007 22:58 |
Dropdownmenü Darstellungsprobleme Firefox | Koody | CSS | 20 | 16.08.2007 13:19 |
Darstellungsprobleme - IE 6 - <fieldset> | Despairing | CSS | 1 | 29.11.2006 15:04 |
Fieldset Darstellungsprobleme | klaus | CSS | 1 | 10.10.2006 13:00 |
FireFox 0.8: darstellungsprobleme mit background-images | crush79 | CSS | 1 | 23.01.2005 04:19 |