Topic: using &lt;link&gt; tags for including a .css file (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=10684" title="Pages that link to Topic: using &amp;amp;lt;link&amp;amp;gt; tags for including a .css file (Page 1 of 1)" rel="nofollow" >Topic: using &amp;lt;link&amp;gt; tags for including a .css file <span class="small">(Page 1 of 1)</span>\

 
hecster2k
Nervous Wreck (II) Inmate

From: sj, ca, usa
Insane since: Feb 2002

posted posted 02-27-2002 18:13

I have a question: when refrencing a stylesheet externally, is it ok to reference any file type, so long as the content is the same? for instance, if i renamed my external css file from style.css to style.file, are there any issues with saying something like:

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


*** slowly losing my sanity ***

kuckus
Bipolar (III) Inmate

From: Berlin (almost)
Insane since: Dec 2001

posted posted 02-27-2002 18:56

Yes, you can change the extension to whatever you wish... but, why don't you want to use .css ?

hlaford
Bipolar (III) Inmate

From: USA! USA! USA!
Insane since: Oct 2001

posted posted 02-27-2002 19:00

You should also be able to reference a script/dynamic page in the href. The server should run the code and return it's content in the context of the LINK element. Just in case you need to differentiate between browsers, etc.

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 02-27-2002 19:28

Are you sure about that? I think if you specify that it's going to be a text/css file, then that's what it's going to look for...

but the file extension change should work fine.

hecster2k
Nervous Wreck (II) Inmate

From: sj, ca, usa
Insane since: Feb 2002

posted posted 02-27-2002 19:29

well, what i was trying to do was simple (supposed to be, at least): i just needed to change the color of the text for my copyright class tag from CCCCCC to black. but my code is running on an apache server that is also running tomcat and java, so the server is serving up html content from one place and jsp content from another, and so the server was trying to load the css file, but it was cached not only by IE but also by apache, and i couldn't get it to load the updated file. so i changed it to style.jsp, and that fixed the problem, since jsp is always being checked for latest versions and not cached versions.

ok, a little more info than you wanted i'm sure.

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 02-27-2002 19:34

Makes sense. Should work fine. But change it back for readability in the future when the old caches are deleted (if they are).

hecster2k
Nervous Wreck (II) Inmate

From: sj, ca, usa
Insane since: Feb 2002

posted posted 02-27-2002 19:43

cool, thanks for the input and advice!

the more i hang around in this crazy home, the harder i find it to hang onto my sanity...

hlaford
Bipolar (III) Inmate

From: USA! USA! USA!
Insane since: Oct 2001

posted posted 02-27-2002 23:48

The use of JSP is exactly what I mean. The server doesn't care what text it's throwing back to the client. It's the browser that decides the context is text/css. One can do the same with an included JavaScript file, CSS, images, etc.

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 02-28-2002 02:08

Ooooh, I gotcha. I thought you meant client-side script when you said script.



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu