WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Programmierung (http://www.wcm.at/forum/forumdisplay.php?f=17)
-   -   css problem (http://www.wcm.at/forum/showthread.php?t=168062)

darkcobalt 14.06.2005 15:30

css problem
 
warum wird das hintergrundbild nicht angezeigt?? was ist falsch am code?

body{
margin: 0px:
background-image: url(img/mauerwerk.jpg);
}


#logoBox {
width: 600px;
height: 150px;
margin-top: 10px;
margin-left: 200px;
background-color: red;
}

#zettelBox_latest {
width: 600px;
height: 150px;
margin-top: 0px;
margin-left: 200px;
background-color: gray;
}


#menu_rechts {
width: 200px;
height: 300px;
margin-top: -150px;
margin-left: 840px;
background-color: green;
}

#zettelBox_main {
width: 600px;
height: 400px;
margin-top: -150px;
margin-left: 200px;
background-color: blue;
}





h1 {
color: red;
}



a.link, a.active, a.visited, a.hover

T.dot 14.06.2005 15:34

Ist die Pfadangabe vielleicht relativ zum HTML File statt relativ zum CSS File? Oder sonstige falsche Pfadangabe? Groß-/Kleinschreibung beachtet?

Ansonsten gibt halt mal den ganzen anderen CSS-Source weg und gib uns ne Online-Testversion, sonst tut man sich hier ziemlich schwer.

mfg Thomas

darkcobalt 14.06.2005 15:37

der pfad stimmt. liegt im selben verzeichnis
 
das ist der html code:

<html>
<head>
<title>STUKI.at</title>
<link rel="stylesheet" type="text/css" href="stuki.css">
</head>

<body>

<div id="logoBox">
banner
</div>

<div id="zettelBox_latest">
latest news
</div>


<div id="menu_rechts">
seitenmenue
</div>

<div id="zettelBox_main">
news
</div>


<h1> Meine Überschrift </h1>

Hier weiterlesen



</body>
</html>

Schappenberg 14.06.2005 15:37

das hatten wir doch schon mal ;)
schau dir doch mal die Zeile drüber an:
Code:

margin: 0px:
am ender der Zeile gehört ein ";", kein ":"!

darkcobalt 14.06.2005 15:39

@Schappenberg
 
das wars!! dankeschön --> hat sich derselbe fehler 2mal eingschlichen!

snowman 14.06.2005 16:05

CSS Validator:
http://jigsaw.w3.org/css-validator/validator-uri.html

X/HTML Valdiator:
http://validator.w3.org/

gruss,
snowman

darkcobalt 14.06.2005 19:39

@snowman
 
danke. das ist wirklich hilfreich.

darkcobalt 14.06.2005 19:41

styleheets frage
 
danke. wie lade ich eine .htm oder .php datei jetzt in eine meiner "stylesheetboxe". was ist eigentlich die korrekte bezichnung für so eine "DIV box"?

thanks


Alle Zeitangaben in WEZ +2. Es ist jetzt 16:05 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag