Hello all,
I have a basic question.I want to use a shared style sheet for my form.I basicly do whatever designer help says to do to import my shared source.And when I preview my form in web browser it doesnt seem to work but it works perfectly when I preview it in the client…
So If anyone tell me how can make my shared style sheet work for web browsers?, where am i doing wrong.
ps.I first tried to import the css file on top of my form, and then into forms httml head Content property.both didnt work…
Thanks in advance…
Subject: Need help for shared style sheets…
First import the stylesheet as a shared resource. In the form use the resource by create/insert resource.
In the dialogbox choose the db it is in and stylesheets from the list of different resources. Then you can choose your stylesheet in the list.
This should result in an icon on the form.
The stylesheet is now available for all form items.
In the browser this results in an @import statement.
Alternative and old way of doing it is to place a "<Link Rel=“Stylesheet” Type=“Text/css href=“mycss”>”
in HTML HEAD
/Bobby
Subject: RE: Need help for shared style sheets…
First of all thank you for your response…
When I use “<link href="/” + DBPath + “/all_blue.css" rel="stylesheet" type="text/css">” in the HTML Head Content property of the form, I can see the changes that style sheet brings.
But when I do the things you have just wrote (I mean defining my css file as a shared resource and import it into my form), it doesnt work.
When I put it in the form (therefore seeing the little icon in the form) and view-source, I see that style sheet is in the body part of the HTML code with @import, and when i put it in the HTML Head content, it is in the head part of the HTML.But in both ways,I couldnt make it work by using my style sheet as a shared resource…What am I doing wrong?..
Thanks again.
Subject: RE: Need help for shared style sheets…
Make sure that the style sheet resource is not hidden from the client type you are using.
Also in the form that the text properties on that line are not hidden from the client type.
Otherwise I can’t see what is wrong.
/Bobby
Subject: RE: Need help for shared style sheets…
Thanks Bob,
My aim was to see the shared style sheet resource working in the web browser…
When I import my resource like that, I can see that it is working,
on the top of the form,
and here is my shared resource (whic is a little icon as you said before)
But when i merely import the source without any HTML tags, it doesnt work on the web…
Anyway thanks for your help, I think I give up using shared resource and would probably just create a page that includes my style sheet and import this page into my form by using HTML Head Content property…
Subject: Need help for shared style sheets…
There’s definitely something wrong here. I’ve come onto the Forum looking for the answer because I’m frustrated – I’m doing exactly what the Domino help tells me to do, but when I look in the browser’s ‘View Source’, I see that Domino hasn’t even tried to put anything there, even though in the Programmer’s Pane I’m seeing the little icon with my stylesheet’s name on it.
I, too, am going to have to go back to the old method.
Subject: CSS as a Shared Resource won’t work on R5 server.
I don’t know if anyone still checks this thread but I had the same problem as Simon. I created a CSS as a shared resource, inserted it into the form, saw the little icon but when I opened a web preview, the css file did not show up in the ‘view source’.
I came upon this thread and after some more searching, I found the root of the problem. My app was on a R5 server (which does not support CSS as a shared resource) though I was diligently inserting my CSS shared resource with my ND6 client.
Here are the 2 threads that finally opened my eyes…
http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/5c3defd349bb180585256d970044271f?OpenDocument
http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/3f3ed7083239004c85256f680079e4b0?OpenDocument
Hope this helps.