Moin Zusammen,
ihr könnt mir vielleicht einen Tipp geben.
Auf dieser Seite motzt der Validator und ich weiß nicht wie ichs besser machen sollte.
http://www.oopsgrafix.de/vondersee/sparkasse/
und zwar sagt der Validator folgendes:
PHP-Code:
document type does not allow element X here; missing one of Y start-tag
✉
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>").
* Line 85, column 74: document type does not allow element "h1" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
…"unternehmen.html"><h1 class="ueber">Unternehmen</h1><p class="buttschrift">D
* Line 85, column 113: document type does not allow element "p" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
…ternehmen</h1><p class="buttschrift">Die OSSG wurde im Jahr 2007 als 100%ige
* Line 86, column 59: document type does not allow element "h1" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
…ul><li><a href="#"><h1 class="ueber">Leistungen</h1><p class="buttschrift">Un
* Line 86, column 97: document type does not allow element "p" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
…eistungen</h1><p class="buttschrift">Unsere Leistungen sind modular aufgebaut
* Line 87, column 59: document type does not allow element "h1" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
…ul><li><a href="#"><h1 class="ueber">Ihre Vorteile </h1><p class="buttschrift
* Line 87, column 101: document type does not allow element "p" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
…Vorteile </h1><p class="buttschrift">Unsere Leistungen sind modular aufgebaut
Der Quelltext an dieser Stelle sieht so aus:
PHP-Code:
<div id="centernavigation">
<div class="button1"><ul><li><a href="unternehmen.html"><h1 class="ueber">Unternehmen</h1><p class="buttschrift">Die OSSG wurde im Jahr 2007 als 100%ige Tochtergesellschaft der Sparkasse Aurich-Norden in Ostfriesland -Ostfriesische Sparkasse- als Dienstleister rund um den Bereich Zahlungsverkehr </p></a></li></ul></div>
<div class="button1"><ul><li><a href="#"><h1 class="ueber">Leistungen</h1><p class="buttschrift">Unsere Leistungen sind modular aufgebaut. Sie entscheiden, welche Teilleistungen die OSSG übernehmen soll. Selbstverständlich ist auch eine Komplett-Übernahme möglich.</p></a></li></ul></div>
<div class="button1"><ul><li><a href="#"><h1 class="ueber">Ihre Vorteile </h1><p class="buttschrift">Unsere Leistungen sind modular aufgebaut. Sie entscheiden, welche Teilleistungen die OSSG übernehmen soll. Selbstverständlich ist auch eine Komplett-Übernahme möglich.</p></a></li></ul></div>
</div>
und die CSS formatierung hat folgenden Inhalt:
PHP-Code:
* html #centernavigation{margin-left:83px;padding-left:0px;}
* + html #centernavigation{margin-left:83px;padding-left:0px;}
#centernavigation{margin-left:83px;margin-top:0px; margin-bottom:0px;margin-rght:auto;width:830px !important;height:114px;padding:0px;margin-top: 0px;margin-bottom: 0px;}
PHP-Code:
.ueber{font-size:1.1em; text-align:center;padding:0px;}
Also, wenn ich das richtig verstehe bemängel der Validator meine <p> Tags innerhalb der Listenfunktion. Aber wie macht man es richtig?
Vielen Dank schonmal,
Butterstulle