Re: Web page design in WO
Re: Web page design in WO
- Subject: Re: Web page design in WO
- From: Richard W Williams <email@hidden>
- Date: Thu, 17 Feb 2005 15:42:02 -0500
Kevin,
This is the same method that I first used to get CSS to work at all. I
was hoping that the absolute address method, or something like it,
would work for this too. Since that isn't the case, I'll use your
method just to be consistent.
Thanks
Dick
On Feb 17, 2005, at 3:23 PM, Kevin Xiaowen Ren wrote:
in the <style>, you have to have some code like this
#back1 {
position:absolute;
top:63px;
left:0;
width:802px;
height:280px;
background-image:url(<WEBOBJECT
NAME=BackgroundImageURL1></WEBOBJECT>);
background-repeat:repeat-x;
z-index:1;
}
in wod file
BackgroundImageURL1: WOString
{
value=getBGImageURL1;
}
in java code:
public String getBGImageURL1(){
return
WOApplication.application().resourceManager().urlForResourceNamed("back
1.gif", null, null, this.context().request());
}
good luck!
kevin
At 14:34 17/02/2005 -0500, you wrote:
Hi,
I tried this with my external CSS and it worked great. However, the
CSS contains a reference to a "backgroung-image" that never shows up.
I tried the same technique using absolute paths, but that didn't seem
to work. Any idea?
Dick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden