Re: CSS with images
Re: CSS with images
- Subject: Re: CSS with images
- From: Ramsey Lee Gurley <email@hidden>
- Date: Tue, 14 Jul 2009 08:00:17 -0400
On Jul 14, 2009, at 6:12 AM, Rukmal Dias wrote:
hi,
I need to use css with images (e.g: background-image: "../
image.gif";) I used ERXStyleSheet and checked, but images are not
applied as back-grounds etc.
<webobject name ="SSCSS"></webobject>
SSCSS : ERXStyleSheet{
filename = "viewport_dragresize.css";
framework = "whatever";
}
.bg{
background-image: url("test.jpg") repeat-x; // (/WebServerResources/
test.jpg )
height: 130px;
}
Can anyone tell me how to use these correctly..
Thanks
Rukmal Dias
Is the stylesheet at WebServerResources/viewport_dragresize.css ? If
not, you should be doing something a little different in your
background-image: url("test.jpg") repeat-x; // (/WebServerResources/
test.jpg )
For instance, if your stylesheet is in WebServerResources/stylesheets/
viewport_dragresize.css, then you will need to use
background-image: url("../test.jpg") repeat-x;
also... is that //comment really there? CSS will throw that line
away if it is. It has to be in /*comment*/ format for css unless I am
mistaken.
Ramsey
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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