02-07-2008, 13:04
|
|
|
חבר מתאריך: 27.04.05
הודעות: 441
|
|
CSS התמונה לא מוצגת
אני מנסה להציג תמונה , אבל היא פשוט לא מוצגת .
כאשר אני שם טקסט בתוך ה DIV שהתמונה אמורה להיות הרקע שלו התמונה מופיעה אבל חלקית , רק בגודל של הטקסט .
קוד ה CSS :
קוד:
* {
margin: 0;
padding: 0;
}
Body{
background-color:white;
text-align:center;
}
.cont{
margin: 0 auto;
width: 747px;
height: 600px;
}
.topcolor{
margin: 0 auto;
width: 747px;
height: 40px;
background-color:#CC9966;
}
.links{
margin: 0 auto;
width: 204px;
height: 182px;
position:relative;
top:-40px;
left:-231.5px;
background:url(1.jpg) 0 0 no-repeat;
}
.logo{
margin: 0 auto;
width: 747px;
height: 190px;
}
קוד ה HTML :
קוד:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="css.css">
</head>
<body>
<div class="cont">
<div class="topcolor"></div>
<div class="links"></div>
<div class="logo"></div>
</div>
</body>
</html>
הDIV המדובר הוא בעל הקלאס LINKS .
תודה .
|