You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Rolando Isidoro <rl...@uninova.pt> on 2005/07/16 00:43:39 UTC

Re: Background image in Lenya

> #page {
>   background-image: url(/resources/shared/images/myimage.jpg);
> }
>
> Any suggestions on how to use an image as a background in Lenya?

Hi Bruce, I've managed to do what you want by adding this line in the 
page.css:

background-image: url(../images/bg.png);

Hope it works for you too,
Rolando

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Background image in Lenya

Posted by Bruce <br...@tfnet.ca>.
On Friday 15 July 2005 18:43, Rolando Isidoro wrote:
> > Any suggestions on how to use an image as a background in Lenya?
>
> Hi Bruce, I've managed to do what you want by adding this line in the
> page.css:
>
> background-image: url(../images/bg.png);
>
> Hope it works for you too,
> Rolando

That's it, thanks! To refer to an image from page.css, give the url relative 
to page.css itself - so obvious, never occurred to me to try. One gets used 
to more complex paths set in some other cofiguration file, such as with 
Apache & Tomcat and so on.

Thanks,

Bruce

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org