07-03-2009, 03:04
Witam ma problem poniewaz kiedy patrze sobie w podglądzie nie chce wyswietlic mi sie grafika. Dokładnie tam gdzie jest szablon.png Po za grafiką wszystko działa poprawnie. Dodam że wszystko mam w tym samym folderze i jeszcze jedno kiedy uruchamiam swój edytor pokazuje mi sie taka informacja: Brak pliku definicyjnego dla CSS. Jnspektor CSS będzie nieaktywny.Nie wiem czy moze miec to jakis wpływ na nie wyswietlanie sie tej grafiki. Jeżeli ktoś może mi pomóc bardzo proszę o odp.
index.html
<?xml version="1.0" encoding="iso-8859-2"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl">
<head>
<meta http-equiv="Content-type" content="text/html; charset=iso-8859-2" />
<meta name="Author" content="Marcin" />
<title>Marcin</title>
<link rel="stylesheet" href="style.css" type="text/css" media="all" />
</head>
<body>
<div id="container">
<div id="header"> </div>
<div id="navcontainer">
<div id="nav1">
<a href="#" alt="link">LINKI1</a>
<a href="#" alt="link">LINKI1</a>
<a href="#" alt="link">LINKI1</a>
</div>
<div id="nav2">
<a href="#" alt="link">LINKI2</a>
<a href="#" alt="link">LINKI2</a>
<a href="#" alt="link">LINKI2</a>
</div>
</div>
<div id="srodek">Tutaj jakis tekst</div>
<div id="stopka"> Created by Jan Kowalski.</div>
</div>
</body>
</html>
style.css
body {
background-color: #ffffff;
margin: 0;
padding: 0;
text-align:center;
}
div {
position:relative;
}
#container {
margin: 0 auto;
padding: 0 0;
position: relative;
width: 700px;
background-color: #ffffff;
text-align: left;
}
#header {
background: #ffffff url(szablon.png) no-repeat;
width: 700px;
height: 100px;
}
#navcontainer {
width:115px;
float:left;
background-color: transparent;
}
#prawo {
width:135px;
float:right;
text-align:left;
}
#srodek {
width: 446px;
float: left;
}
#stopka{
text-align: center;
clear:both;
}
index.html
<?xml version="1.0" encoding="iso-8859-2"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl">
<head>
<meta http-equiv="Content-type" content="text/html; charset=iso-8859-2" />
<meta name="Author" content="Marcin" />
<title>Marcin</title>
<link rel="stylesheet" href="style.css" type="text/css" media="all" />
</head>
<body>
<div id="container">
<div id="header"> </div>
<div id="navcontainer">
<div id="nav1">
<a href="#" alt="link">LINKI1</a>
<a href="#" alt="link">LINKI1</a>
<a href="#" alt="link">LINKI1</a>
</div>
<div id="nav2">
<a href="#" alt="link">LINKI2</a>
<a href="#" alt="link">LINKI2</a>
<a href="#" alt="link">LINKI2</a>
</div>
</div>
<div id="srodek">Tutaj jakis tekst</div>
<div id="stopka"> Created by Jan Kowalski.</div>
</div>
</body>
</html>
style.css
body {
background-color: #ffffff;
margin: 0;
padding: 0;
text-align:center;
}
div {
position:relative;
}
#container {
margin: 0 auto;
padding: 0 0;
position: relative;
width: 700px;
background-color: #ffffff;
text-align: left;
}
#header {
background: #ffffff url(szablon.png) no-repeat;
width: 700px;
height: 100px;
}
#navcontainer {
width:115px;
float:left;
background-color: transparent;
}
#prawo {
width:135px;
float:right;
text-align:left;
}
#srodek {
width: 446px;
float: left;
}
#stopka{
text-align: center;
clear:both;
}