• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CSS with images
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CSS with images


  • Subject: Re: CSS with images
  • From: Ramsey Lee Gurley <email@hidden>
  • Date: Tue, 14 Jul 2009 08:18:10 -0400

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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >CSS with images (From: Rukmal Dias <email@hidden>)
 >Re: CSS with images (From: Ramsey Lee Gurley <email@hidden>)

  • Prev by Date: Re: CSS with images
  • Next by Date: Re: CSS with images
  • Previous by thread: Re: CSS with images
  • Next by thread: Re: CSS with images
  • Index(es):
    • Date
    • Thread