Climis, Tim wrote:


url(httPL//localhost/kcpage/images/bg.gif)

This one you've mistyped http:, so it's trying 
http://localhost/kcpage/css/httPL//localhost/kcpage/images/bg.gif.  Assuming 
you typed it correctly in the sheet the first time, it should have worked.


Yep, that was a typo - sorry.

url(//localhost/kcpage/images/bg.gif)

This one is using http://localhost/kcpage/css//localhost/kcpage/images/bg.gif

As Tim Snadden wrote, ../images/bg.gif will work.  As will 
http://localhost/kcpage/images/bg.gif.


Ack! but it doesn't :( not even for the absolute URL:

body {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        background-image: url(http://localhost/kcpage/images/bg.gif);
        margin-top: 0px;
        margin-right: 0px;
        margin-bottom: 0px;
        margin-left: 0px;
        background-color: #001040;
        margin: 0px;
        color: #202060;
}

I'm now down to using the simplest html I can:

<html>
    <head>
        <link rel="stylesheet" type="text/css" href="css/style.css" />
        <title>Test page</title>
    </head>
    <body
        <img src="images/logo.gif" alt="logo"/>
        <h2>Hello Word</h2>
        Some text follows here.
    </body>
</html>

And I just can't make it work.

OK.

I think there's a problem with something else in the style sheet. If I have only the body tag in a separate style sheet it works. :(

Back to the drawing board. :(

And sorry to have wasted your time, but I would probably not have found the ../ relative url on my own.



______________________________________________________________________
css-discuss [[email protected]]
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/

Reply via email to