Can I Add A Link To A CSS

liunx

Guest
Can I Add A Link To A CSS? If so How? I've looked everywhere and I can't find it!!<br />
Thanks<!--content--><link rel="stylesheet" type="text/css" href=http://www.htmlforums.com/archive/index.php/"path/to/file.css"><!--content-->You could also use this if you want Netscape4 to ignore the stylesheet:<br />
<br />
<style type="text/css" media="all">@import "path/to/file.css";</style><br />
<br />
<br />
<br />
Or you can use both for cross-browser compatibility:<br />
<br />
<link rel="stylesheet" type="text/css" href=http://www.htmlforums.com/archive/index.php/"path/to/basic.css"><br />
<style type="text/css" media="all">@import "path/to/advanced.css";</style><br />
<br />
"basic.css" contains the simple CSS that Netscape4 and other old browsers understand, and "advanced.css" contains the more advanced stuff that will only be used by browsers than understand it.<br />
<br />
<br />
I hope this helps. <br />
<br />
:)<!--content-->Remember that if you save the CSS code in an external .css file, that the file should not contain any HTML tags like <script>, nor should you use comment tags like <!-- and --> within it. Only pure CSS code should be in the file. In CSS you must have units with all of your numbers, so one of either px, pt, em, %, or # is always required.<!--content-->
 
Back
Top