Re: CSS and WebObjects
Re: CSS and WebObjects
- Subject: Re: CSS and WebObjects
- From: Mez <email@hidden>
- Date: Sat, 27 Nov 2004 09:27:55 +0000
Vincent,
Include a <STYLE> tag in your <HEAD> element in WOBuilder.
Just insert a custom element using WOBuilder (or hand code it), using
the following bindings for the tag:
media - screen
type - text/css
And then in the content of the tag specify the location from which your
browser should import the style sheet. As an example, the html in your
page would appear as:
<STYLE type="text/css" media="screen">@import
"http://yourserver/yourstylesheet";</STYLE>
WOBuilder doesn't allow you to import CSS stylesheets or use them in
WYSIWYG mode. Note, you can also use the file:// URL syntax for the
stylesheet reference. You can put your stylesheet anywhere you like,
but it will probably be easiest to use the absolute URL representation
if you're using it in conjunction with WebObjects, since there's little
advantage in making it an application resource.
Some useful links for more info on CSS are below.
HTH,
Mez
http://developer.apple.com/internet/safari/safari_css.html
http://www.csszengarden.com/
http://www.meyerweb.com/eric/css/edge/
On 27 Nov 2004, at 07:56, Vincent Coetzee wrote:
Dear List
Please excuse me if this question has been asked and answered, I find
searching the list archives at lists.apple.com is not productive. I
have only recently learnt how to use CSS and would now like to include
and use CSS in my WebObjects projects (and I have only VERY recently
started using WebObjects, so while I am a very competent Java
programer, I am a complete CSS and WebObjects novice). I am having
trouble doing this for several reasons
1. WebObjects obviously is not aware of CSS since I can not find a
"nice" way to let WO know about a style sheet short of editing the
HTML directly. Is there a way ?
2.WebObjects ignores all the formatting info in my style sheet. Is
there a way to make it use it ?
3.If I reference a style sheet in my html, when I run my app (in
development mode) my style sheets are not found. Where do I put style
sheets (and for that matter images) so that they are found without
having to use absolute paths ?
Even a pointer to some docs would be appreciated. I have googled
without much success.
Thanks
Vincent
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
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