This is what I have & I don't know what I'm missing or doing wrong to get this program to work correctly? Can't get the image to load...
<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
<title>Image</title>
<style type = "text/css">
body { background-image: url(logo-snappy.gif);
background-position: center;
background-repeat: repeat-x;
background-attachment: fixed;
background-color: #800080 }
</style>
</head>
<body>
<p>
Just a sample of what a CSS text and background image should look like.</p>
</body>
</html>
What am I doing wrong?
Started by divaliya, Apr 22 2010 04:52 PM
3 replies to this topic
#1
Posted 22 April 2010 - 04:52 PM
|
|
|
#2
Posted 23 April 2010 - 07:23 AM
image url must be with single quotes
background-image: url('logo-snappy.gif');
#3
Posted 23 April 2010 - 09:35 AM
you have the answer , the file name of the image must be encapsulated with a ' quotes
<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
<title>Image</title>
<style type = "text/css">
body { background-image: url('logo-snappy.gif');
background-position: center;
background-repeat: repeat-x;
background-attachment: fixed;
background-color: #800080 }
</style>
</head>
<body>
<p>
Just a sample of what a CSS text and background image should look like.</p>
</body>
</html>
#4
Posted 23 April 2010 - 05:41 PM
Thanks! Now if I can just figure out why my image won't appear I'm all set. :lol:


Sign In
Create Account

Back to top









