Click to See Complete Forum and Search --> : image doesnt appear
mrtblt
01-11-2009, 06:48 AM
It is very simple, but i dont understand why it doesnt work
here is the link
http://www.neykids.com/splash.php
And here is the code
<body bgcolor="#318cb9" >
<div style="background-image:url(images/splash_neykids.jpg)">
merhaba
</div>
</body>
Image doesnt appear as background image.
How i can fix it?
TheBearMay
01-11-2009, 08:10 AM
Hmmm.... syntax looks correct, and the image is at the right path...might try:
background-image:url(/images/splash_neykids.jpg)
mrtblt
01-11-2009, 09:21 AM
doesnt work...
Charles
01-11-2009, 09:31 AM
It's working well and good. Try: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<base href="http://www.neykids.com/splash.php">
<title>Example</title>
</head>
<body>
<div style="background-image:url(images/splash_neykids.jpg)">
merhaba
</div>
</body>
</html>But what you want is:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<base href="http://www.neykids.com/splash.php">
<title>Example</title>
</head>
<body>
<div style="background-image:url(images/splash_neykids.jpg); height:400px; width:650px">
merhaba
</div>
</body>
</html>
jamesbcox1980
01-13-2009, 02:31 PM
It is working fine on my side. Try emptying your cache and then view your page.