| View previous topic :: View next topic |
| Author |
Message |
PaulKolin Enthusiastic Coder
Joined: 25 May 2006 Posts: 108
|
I have one question concerning the handling of <meta basedir=...>:
In basedir/index.html i declared the basedir and linked to a stylesheet basedir/css/style.css
In the stylsheet i want to declare e background-image /basedir/images/background.jpg.
I tried this with { background-image: url(images/background.jpg); } but the background remains empty?
Why?
Reply with quote
|
| |
|
|
optomeb Enthusiastic Coder
Joined: 19 May 2006 Posts: 113
|
make sure your stylesheet is linked properly like so: <link href="stylesheet.css" rel="stylesheet" type="text/css">
So maybe you just need to correct the path to your styleseet :)
Reply with quote
|
| |
|
|
PaulKolin Enthusiastic Coder
Joined: 25 May 2006 Posts: 108
|
Both (html+css) validated correctly.
Is the background-image url relative to the path of the stylesheet, or relative to <base ...>?
Reply with quote
|
| |
|
|
optomeb Enthusiastic Coder
Joined: 19 May 2006 Posts: 113
| |
PaulKolin Enthusiastic Coder
Joined: 25 May 2006 Posts: 108
|
It looks like the path to the background-image was relative to the file where the bg-img was declared...
So now I'm fine and know what to do.
Reply with quote
|
| |
|
|
|