ich habe mal eine Frage.
Ich habe im Header ein Bild eingebunden und eine Hintergrundfarbe eingestellt.
So sieht das Stylesheet aus:
div#header {
height: 80px; /* adjust according your image size */
background: #fffacd; /* alt: 385C72 */
}
div#header h1 a {
/* you can set your own image here */
background: #fffacd url(uploads/images/home/banner.jpg) no-repeat 0 12px; /* 385C72 */
display: block;
height: 80px; /* adjust according your image size */
text-indent: -999em; /* this hides the text */
text-decoration:none; /* old firefox would have shown underline for the link, this explicitly hides it */
Wie kann ich dieses Bild zentrieren?
Mit dem Befehl margin hat es nicht funktioniert. Da kam dann nur der Titel der Homepage irgendwie zum Vorschein?
Gruß
Peter