How to link a css file to an html file?

hi

I have read posts that are rather old for a tool that is supposed to have evolved.
In 2023, what about it?

i tried :

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

and i got nothing !

1 Like

Do you have the css file in the same folder as the html file?

The file name is case sensitive for most web servers so make sure the file name is myCard.css not mycard.css for example.

AFAIK you can’t link to a local css file from within your html file when both files are served as assets with the app.

1 Like

hi

i don’t know what to think your intervention suggests it should work and @jared says no!
and for now i’m still looking …

1 Like

hi

I don’t know what to think you say it’s not possible and @muneer’s intervention suggests that it works and that I made a capitalization error
is there another way to do it?

1 Like

If your HTML file is residing somewhere in a server then it works.

If your HTML is included in the project assets then you need to add the CSS entries in the HTML file as internal CSS or directly in the HTML element as in-line CSS

1 Like

hi
thanks for your support

If your HTML is included in the project assets then you need to add the CSS entries in the HTML file as internal CSS or directly in the HTML element as in-line CSS

that’s what i would have to do

1 Like

Should you want to see examples of internal CSS or inline CSS let me know.

hi

thanks for your support

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.