[Gambas-user] WebPage and external files

T Lee Davidson t.lee.davidson at gmail.com
Sun Nov 13 18:35:37 CET 2022


On 11/13/22 11:48, Hans Lehmann wrote:
> unfortunately the implementation of this hint does not bring the hoped for access to the content of external files like 
> style.css or logo.png.

Hmmm, that should work.

Are you certain you are specifying the path correctly?

If you have a style sheet in the project's Public directory (and not in a subdirectory of that directory), the link tag in the 
HEAD of the web page should be similar to:
<link rel="stylesheet" type="text/css" href="<%/%>/style.css">

I just tried it with both a style sheet and an image (in a "img" subdirectory), and it does work.


-- 
Lee



More information about the User mailing list