Example by Pascal will work ok in development mode provided you have all the images in WebServerResources, e.g:

workspace/MyProject/WebServerResources/base.css
workspace/MyProject/WebServerResources/images/icon.gif

In base.css you can have something like:

h1.my {
        background-image: url('images/icon.gif');
}

Browsers request images relative to css file url (not current url), so you will be ok both in development and production mode.

On Jan 14, 2008, at 7:39 PM, Theodore Petrosky wrote:

but what about during the development stage.... Whilst
I am working in Eclipse?

is there an simple example out there that uses an
external css file that I could download?

Ted


--- Guido Neitzer <[EMAIL PROTECTED]> wrote:

On 13.01.2008, at 19:54, Theodore Petrosky wrote:

I am new to external css files... I am still
testing,
or rather I am testing my patience to get this to
work... If I have this line in my <head> area:

<link href="thejobstyle.css"   rel="stylesheet"
type="text/css" />

Make it

<link href="/projectname/thejobstyle.css"
rel="stylesheet" type="text/
css" />

and put it in
"/Library/WebServer/Documents/projectname" (or
create a
symlink, see below). That's how I do it. If you put
everything in the
WebServer-Root to have shorter URLs (I don't care
about that) you
might get in trouble with more than one project.

You could have a "Web" folder in your project and a
symbolic link in "/
Library/WebServer/Documents/". If you use Webserver
connect, make
sure, that apache is allowed to access the whole (!)
path.

cug

--
Real-World WebObjects class at the Big Nerd Ranch
March 2008, Frankfurt, Germany
http://www.bignerdranch.com/classes/webobjects.shtml







____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/dfrolov%40demax.ru

This email sent to [EMAIL PROTECTED]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
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