URL references in stylesheet methods

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

URL references in stylesheet methods

Maarten Mostert-2
Hi,
Swapping the File Library for a real served image works well inside normal methods like
html image url:  ...
I have a problem though doing this inside a style sheet.
Somehting which starts like:
style
    ^'body { 
background-image: url  (http://www.mydomain.com/images/upperleft.png);
......
just does not work   why?

Rgrds,


Maarten,


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: URL references in stylesheet methods

Philippe Marschall
2007/11/11, Maarten Mostert <[hidden email]>:

>
>  Hi,
>  Swapping the File Library for a real served image works well inside normal
> methods like html image url:  ...
>  I have a problem though doing this inside a style sheet.
>  Somehting which starts like:
>  style
>      ^'body {
>  background-image: url
> (http://www.mydomain.com/images/upperleft.png);
>  ......
>  just does not work   why?

What does "does not work" mean? Does the url
http://www.mydomain.com/images/upperleft.png work? Are you sure you
flushed the caches?

Cheers
Philippe
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: URL references in stylesheet methods

Maarten Mostert-2
Philippe Marschall a écrit :
2007/11/11, Maarten Mostert [hidden email]:
  
 Hi,
 Swapping the File Library for a real served image works well inside normal
methods like html image url:  ...
 I have a problem though doing this inside a style sheet.
 Somehting which starts like:
 style
     ^'body {
 background-image: url
(http://www.mydomain.com/images/upperleft.png);
 ......
 just does not work   why?
    

What does "does not work" mean? Does the url
http://www.mydomain.com/images/upperleft.png work? 
Yes the url itself produces my image in the browser.
Are you sure you
flushed the caches?
  
If that is equivalent of starting a new session yes I did.
Notice that the next line in this method changes the associated color wich changes correctly upon modifications.
Using the File library also produces the image correctly. However the deployed image on the server does not produce the png file from the style method neither as a file library neither as a url link.

Rgrds,

@+Maarten,

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: URL references in stylesheet methods

Claus Kick
Maarten Mostert wrote:

> If that is equivalent of starting a new session yes I did.
> Notice that the next line in this method changes the associated color
> wich changes correctly upon modifications.
> Using the File library also produces the image correctly. However the
> deployed image on the server does not produce the png file from the
> style method neither as a file library neither as a url link.

For normal browsers, images specified in .css are a bit tricky: the path
has to be set in relation to the position of the css file.

i.e. css file is in /css and image is in /images the url for the image
in the css file should be ../images/image.png.
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside