Anytime... try to keep replies on list though. Someone else might have the same problem later and will benefit from the searchable mail archives :-)

Ramsey

On Jul 14, 2009, at 8:28 AM, Rukmal Dias wrote:

hi,

yes, thanks. that should be background: url("test.jpg") repeat-x;

it work fine now..

thanks
Rukmal

On 14 Jul 2009, at 17:48, Ramsey Lee Gurley wrote:

Oops, just noticed... you are using background-repeat in background- image. The browser will drop that line as a result. Use just

background: url("test.jpg") repeat-x;

Ramsey

On Jul 14, 2009, at 8:15 AM, Rukmal Dias wrote:

hi,

.bg{
        background-image: url("test.jpg") repeat-x;
        height: 130px;
        font-size = 30pt;
}

yes style sheet and the image is in the same folder, i.e WebServerResources Other options works fine such as font-size etc, and only the image is missing..

thanks
Rukmal

On 14 Jul 2009, at 17:30, Ramsey Lee Gurley wrote:


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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to