Lukas Böhm: Brett vor dem Kopf: Problem mit Zentrierung

Beitrag lesen

Hi!

Ich bin mir nicht sicher, aber ich habe ein paar Stellen gefunden, die mir eigenartig vorkommen:

text-align: justify;
ich würde
text-align: center;
nehmen...

justify ist blocksatz und center zentrieren. Das sind 2 völlig verschiedene Dinge. Außerdem hat das wenig damit zutun, ob das _Bild_ zentriert ist.

div#top{
width: 800px;
margin: 0.5em auto 0 auto;
}
div#top?
da ist ein div zuviel.
ich würde
#top{
width: 800px;
margin: 0.5em auto 0 auto;
}
schreiben...

#top gilt auch für ein <span> mit der id top. div#top gilt nur für divs mit der id top.

<img src="bilder/top_img.jpg" width="549" height="288" alt="" title="" style="margin: 0 auto 0 auto;">
Wieso hast du hier wieder einen Style, wenn du bereits einen Bodystyle und einen style top hast.
Da hast du dich etwas vertan.

Das ist doppeltgemoppelt. Das ist richtig. Aber es bestätigt nur das, was im div#top steht. Deswegen dürfte das auch keine Rolle spielen.

Eine Frage zurück:
Mit welchem Programm arbeitest du?

Mit einem ganz normalen Texteditor.
szia, Lukas