Try this path in the style sheet:
background-image: url(/kcpage/images/bg.gif);
On 11/1/2010 3:30 PM, MikeB wrote:
Hello, I'm pretty new at alll of this and ran into something I can't
resolve.
I have a webpage at:
http://localhost/kcpage/index.php
On my server (localhost) my folder structure is:
www:
-kcpage(folder)
--index.php
--css (folder)
--images(folder)
In my index.php I include my css stylesheet as follows in the <head>
section:
<link rel="stylesheet" type="text/css" href="css/style.css" />
I also include a logo as follows:
<img src="images/logo.gif" /> This image displays just fine.
In my css stylesheet I have:
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
background-image: url(images/bg.gif);
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
background-color: #001040;
margin: 0px;
color: #202060;
}
Try as I might, I cannot figure out how to specify the url to make the
image appear as background on my page.
I tried:
url(bg.gif)
url(/images/bg.gif)
url(./images/bg.gif)
url(httPL//localhost/kcpage/images/bg.gif)
url(//localhost/kcpage/images/bg.gif)
Can someone please tell me how to specify the url in the stylesheet to
pick up the background image?
Thanks.
______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/