View Full Version : Differences between import url & link rel ?
Caffeine
07-29-2003, 07:43 AM
What is the difference between
<style type="text/css">
@import url(/styles/theme.css);
</style>
and
<LINK REL="stylesheet" TYPE="text/css" HREF="includes/theme.css">
Also, anyone have a downloadable css-reference ?
Kind of like the ones M$ used to have on their scripting-tech's.
While I'm asking all these questions, is there a downloadable javascript-ref. out there ? I'd prefer a non-MSJS ref, but if thats the only one out there I guess I'll have no choice.
MotherNatrsSon
07-29-2003, 07:58 AM
Originally posted by phlegmatic
What is the difference between
<style type="text/css">
@import url(/styles/theme.css);
</style>
and
<LINK REL="stylesheet" TYPE="text/css" HREF="includes/theme.css">
Also, anyone have a downloadable css-reference ?
Kind of like the ones M$ used to have on their scripting-tech's.
While I'm asking all these questions, is there a downloadable javascript-ref. out there ? I'd prefer a non-MSJS ref, but if thats the only one out there I guess I'll have no choice.
The @ import does not load the CSS in older browsers that cannot handle it. It has been mentioned in a couple of threads recently.
I haven't seen any downloadable references. I have seen reference cards for sale online though.
MNS
The original purpose is of course to let you import one style sheet into another, not to use it alone as in your example.
A very handy CSS1 reference in Windows Help format (among others).
http://www.htmlhelp.com/distribution/
Their HTML4 reference is also great. Just remember that it's 4.0, not 4.01 so there are some minor differences (mainly that 'name' isn't allowed for FORM in 4.0 but is in 4.01).
The spec itself is downloadable.
http://www.w3.org/TR/REC-CSS2/ -->"Available formats"
cg9com
07-29-2003, 09:58 AM
Moving thread to HTML & CSS ...
Caffeine
07-29-2003, 10:31 AM
Thank you soo much for your replies!
I found lots of JavaScript-recources in the JS-programming forum, I guess I should have used the searchengine before I decided to post :o
thanks!
I use the @import version to hide the code from NS4.
If you use it, then the @import MUST be the very first thing after the <style> tag.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.