Re: CSS again...
Re: CSS again...
- Subject: Re: CSS again...
- From: Florijan Stamenkovic <email@hidden>
- Date: Tue, 22 Feb 2005 11:25:32 +0100
This is an cutout from a thread that concerned page design in WO, including CSS. This is describing how to use an external CSS in the most simple way I can see.
You want to put your stuff (CSS) in /Library/WebServer and then use a link like
<link rel="stylesheet" href="/CSSs/myCSS.css" type="text/css">
This assumes that "myCSS.css" is in /Library/WebServer/CSSs/myCSS.css
You can of course use whatever path you want, as long as it is within the WebServer. And note how the href is typed in the html.
That should work. I did work for me fine. In that case as I see it you don't have a point in having that function, except maybe for linking in different CSSs depending on...
Hope this helps.
Florijan
On Feb 22, 2005, at 10:25, Erwin wrote:
writing CSS STYLE in my HTML code works fine...but
I searched among all posts dedicated to CSS to find a way using an external CSS file
should I insert manually a <LINK REL="stylesheet' TYPE="text/css" HREF="style1.css">
between <HEAD> and </HEAD> ?
if I have a non-synch component returning the css path (thanks Steve... with the necessary API bindings)
...
public String pathForCSS() {
WOResourceManager rm = application().resourceManager();
return rm.urlForResourceNamed(stylesheetFilename(), stylesheetFramework(), null, context().request());
}
where should I insert this component ? how can I get back the path into my <LINK HREF=...
I am quite a little bit confused about binding outside the <BODY.....>
Erwin _______________________________________________
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
_______________________________________________
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