Du bist nicht angemeldet. Der Zugriff auf einige Boards wurde daher deaktiviert.

#1 28. Februar 2012 21:46

Josch
probiert CMS/ms aus
Registriert: 31. Oktober 2011
Beiträge: 20

[GELÖST] Backgroundbild im header

Hallo zusammen,

Ich komme einfach nicht mehr weiter.
Iich verwende das Stylesheet "Layout: Left sidebar + 1 column"

/* header, we will hide h1 a text and replace it with an image, we assign a height for it so the image wont cut off */
div#header {
/* adjust according your image size */
	height: 100px;
	margin: 0;
	padding: 0;
/* you can set your own image here, will go behind h1 a image /*
         background: #f4f4f4 url([[root_url]]/uploads/ngrey/bg_banner.png) repeat-x left top;
/* border just the bottom */
	border-bottom: 1px solid #D9E2E6;
}
div#header h1 a {
/* you can set your own image here */
	background: url([[root_url]]/uploads/ngrey/logomgsc3.png) no-repeat left top;
/* this will make the "a" link a solid shape */
	display: block;
/* adjust according your image size */
	height: 100px;
/* this hides the text */
	text-indent: -999em;
/* old firefox would have shown underline for the link, this explicitly hides it */
	text-decoration: none;
}
div#header h1 {
	margin: 0;
	padding: 0;
/*these keep IE6 from pushing the header to more than the set size*/
	line-height: 0;
	font-size: 0;
/* this will keep IE6 from flickering on hover */
	background: url([[root_url]]/uploads/ngrey/logomgsc3.png) no-repeat left top;
}
div#header h2 {
/* this is where the site name is */
	float: right;
	line-height: 1.2em;
/* this keeps IE6 from not showing the whole text */
	font-size: 1.5em;
/* keeps the size uniform */
	margin: 35px 65px 0px 0px;
/* adjust according your text size */
	color: #f4f4f4;
}

Hier wird ja das Bild "bg_banner.png" als Hintergrundbild gesetzt. Leider funktioniert das nicht mehr. Keine Ahnung was ich da gemacht habe. Unser Logo wird angezeigt jedoch ohne den grauen Hintergrund.
Zu sehen auf www.mgsc-simmern.de.
Kann mir jemand sagen was hier schiefläuft.

Vielen Dank!

Gruß Josch

Offline

#2 28. Februar 2012 22:39

mike-r
arbeitet mit CMS/ms
Registriert: 21. Dezember 2010
Beiträge: 898
Webseite

Re: [GELÖST] Backgroundbild im header

/* you can set your own image here, will go behind h1 a image /*
         background: #f4f4f4 url([[root_url]]/uploads/ngrey/bg_banner.png) repeat-x left top;

Der Kommentar ist nicht korrekt geschlossen.


Unablässige Tools für's Webdevelopement/ Fehlerfindung: CSS Validierungsservice, Bildschirmlineal, Firebug, Tidy, Deutsche CSS-Referenz

Offline

#3 29. Februar 2012 21:26

Josch
probiert CMS/ms aus
Registriert: 31. Oktober 2011
Beiträge: 20

Re: [GELÖST] Backgroundbild im header

Hallo Mike,

ich Hirni, vielen Dank, das wars.

Josch

Offline