I have 3 files which contain CSS declarations and html code. I use server-side includes to combine them into one final web page. The result looks good in IE but not in Firefox or Netscape. Here is a basic sample of the code:
The files 'PagePart2.shtm' and 'PagePart3.shtm' are structured as follows:
Now when the page is structured like this, it's a lot easier for me to manage things at the server, and it works great with IE, but when I try to use Firefox or Netscape, the style sheets referenced by 'PagePart2.shtm' and 'PagePart3.shtm' do not take effect, and my layout gets screwed up.
If I change from this code:
to this code:
then things work fine in IE, Firefox, and Netscape, but I don't want to have all my style sheets visible when the end-user selects 'View - Source' in the web browser.
So, can anyone tell me why Firefox and Netscape do not process all three of the <LINK> directives?
- James.
My memory is not as good as it should be, and neither is my memory.
I have forgotten more than I can remember
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HEAD>
<link rel="stylesheet" type="text/css" href="/MySytle.css">
</HEAD><BODY>
<!--#include file="/PagePart2.shtm" -->
<!--#include file="/PagePart3.shtm" -->
</BODY>
The files 'PagePart2.shtm' and 'PagePart3.shtm' are structured as follows:
Code:
<link rel="stylesheet" type="text/css" href="/MySytle2.css">
<!--My HTML code goes here -->
Now when the page is structured like this, it's a lot easier for me to manage things at the server, and it works great with IE, but when I try to use Firefox or Netscape, the style sheets referenced by 'PagePart2.shtm' and 'PagePart3.shtm' do not take effect, and my layout gets screwed up.
If I change from this code:
Code:
<link rel="stylesheet" type="text/css" href="/MySytle2.css">
Code:
<!--#include file="/MyStyle2.css" -->
So, can anyone tell me why Firefox and Netscape do not process all three of the <LINK> directives?
- James.
My memory is not as good as it should be, and neither is my memory.
I have forgotten more than I can remember