multiple css href in <head>

Hi,<br />
<br />
Is it possible to have an .html page reference two different .css pages?<br />
<br />
I could combine them, but that would make the css too large (kb's).<br />
<br />
Thanks,<br />
Gandalf<br />
:D<!--content-->That is prefectly legal. <br />
<br />
You can thus link to a global company wide style sheet, a department style sheet and a local section style sheet for example. And you can also have inline style sheets in the same page. This allows much flexibility.<br />
<br />
You need to read and understand the cascading style sheet rules as there are excact mapped out rules of precedence in case of conflicts<!--content-->I understand the order of precedence. What I'm up against is, my css page for the entire site is 800 lines of definitions. The other css page that if for a particular page that we are integrating with the site, is 200 lines long. I need to keep the original 800-lines long css page so that the title/menu will look right, but I don't want to add 200 extra lines for every other page to load unnecessarily.<br />
<br />
Maybe I should have told you that from the beginning. Sorries.<br />
<br />
Now, with that in mind, can I still link to two different css pages from a single html page?<br />
<br />
If I can't, I will just take the necessary definitions for the title/menu from the original css and paste them into the smaller css page. <br />
<br />
But I'm just curious if it's possible to link to two different css pages from the same page.<br />
<br />
Thanks, Gandalf<br />
:D<!--content--><LINK REL=StyleSheet HREF=http://www.htmlforums.com/archive/index.php/"style1.css" TYPE="text/css"><br />
<LINK REL=StyleSheet HREF=http://www.htmlforums.com/archive/index.php/"style2.css" TYPE="text/css"><br />
<LINK REL=StyleSheet HREF=http://www.htmlforums.com/archive/index.php/"style3.css" TYPE="text/css"><br />
<br />
<br />
Is the above what you mean ?<br />
There is no problem, and no limits if you have 200 or 800 lines.<!--content-->yes, that's what i mean...now, how to tell a certain part of the page to link to which css file??<br />
<br />
g<!--content-->You need to have unique identifiers. You can not have 1st half of the page read .mylink from one file and another part of the page read .mylink from the other file. The two files get (internally in the browser) combined to one big stylesheet and any conflicts get resorted before the page loads.<br />
<br />
Hope clarifies<!--content-->
 
Back
Top