I'm trying to figure out how to put a background image (i.e., a 'watermark', if you like) on a Lenya site.

My setup -  the publication in question is in:

/usr/share/tomcat5/webapps/lenya/lenya/pubs/mypub/

which I'll call $MYPUB.

I put my images in $MYPUB/resources/shared/images/. I can now use those images in $MYPUB/xslt/page2xhtml.xsl, as follows:

 <img src="{$root}/images/myimage.jpg" alt="My Image"/>

to replace the default Apache Lenya logo with my own image.

What I'd like to do is use an image as a tiled background to the entire page, sort of like a watermark. I'm not entirely sure how to go about this.

I gather this can be done with a background-image directive in the page.css file; however, I'm not entirely sure how. I tried the following (with various variations of the path to the image, i.e., putting in more, and less, of the full path) in page.css, but it didn't work:

/* page */
#page {
  background-image: url(/resources/shared/images/myimage.jpg);
}

Any suggestions on how to use an image as a background in Lenya?

Thanks,

B.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to