Servus !
Ich habe das Problem, dass mein #kopfbereich keine Hintergrundgrafik anzeigt
Weiß nicht woran es liegen kann?
Die CSS Datei
Die Index.html
Ich habe das Problem, dass mein #kopfbereich keine Hintergrundgrafik anzeigt
Weiß nicht woran es liegen kann?
Die CSS Datei
Code:
*/* Stylesheet der "Little Boxes DVD */
* { padding: 0; margin: 0; }
h2, p, ul, ol { margin-bottom: 1em; }
ol ul { margin-bottom: 0; }
li { margin-left: 2em; }
body {
background-color: #353535; /* dunkles Grau */
color: black;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: small;
}
}
h1 { font-size: 150%; }
h2 { font-size: 130%; }
a {
text-decoration: none;
outline: none;
}
a:link { color: #d90000; } /* nicht besuchte Links */
a:visited { color: #cc6600; } /* besuchte Links */
a:hover, a:focus { border-bottom: 1px solid #d90000; } /* durchgezogener Ramen */
a:active {
background-color: #d90000;
color: white;
}
#wrapper {
background-color: #353535;
color: black;
width: 660px;
height:410px;
position: absolute;
top: 50%;
left: 50%;
margin-top: -205px;
margin-left: -330px;
}
#kopfbereich {
height:100px;
width:650px;
background-color: darkred;
background-image: url (grafiken/headertsmll.jpg);
border: 2px solid #000000;
}
#inhalt {
margin-left:auto;margin-right:auto;
height: 300px;
width: 500px;
top: 50%;
left: 50%;
background-color: #FFFFFF;
border: 1px dashed #000000;
}
address {
text-align: center;
font-site: 80%;
font-style: normal;
letter-spacing: 2px;
line-height: 1.5;
}
#fussbereich {
padding: 10px 20px 20px 20px;
border-top: 1px solid #353535;
margin-top: 20px;
}
Die Index.html
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="de" xml:lang="de">
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>Willkommen auf unserer HP! </title>
<link href="mystyle.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body id="startseite">
<div id="wrapper">
<div id="kopfbereich" align="center">
<h1>Herzlich willkommen auf unserer Homepage!</h1>
</div>
<div id="inhalt" align="center">
..
</div>
</div>
</body>
</html>
Zuletzt bearbeitet: