Forum Moderators: not2easy
I've called the stylesheet using
<link rel="stylesheet" type="text/css" href="/css/test_style.css" />
and it the stylesheet itself, I have created 2 simple styles
H3 { font-size: x-large; color: red }
H4 { font-size: large; color: blue }
I know that if I remove the call to the stylesheet and just put the styles in my HTML it will work. Any help is appreciated.
[sapid.com...]
Taking the DOCTYPE off my pages has worked for now but it's an unsatisfactory solution.
<link rel="stylesheet" type="text/css" href="../css/test_style.css" />
How about adding 'media="screen"' also?
AddType text/css css
AddType application/x-httpd-php .php4 .php .htm .php3 .inc .html
--> That took care of Netscape. Mozilla however, after messing with preferences, adding .htaccess lines and making sure the doctype was in order still fails to recognize the sheets.
AddType text/css css
rather than:
AddType text/css .css
The line "text/css css" shows up in the mime.types file that Apache is using on my server. For what it's worth, the server I have complete access to only has pages with styles incorporated by @import rather than by <link rel="stylesheet ...>. The only drawback I know of to that is the fact that in my experience NN4 doesn't honor @import, and does honor <link rel="stylesheet"...>. However, as browsers become more standards compliant, multiple <link>s to stylesheets will stop cascading and start offering the user a choice of stylsheets. (Odd, but apparently thats how the standard is written.)
Anyway, the upshot here is meant to be that there is hope yet.
You're using this syntax:
@import "css_global/site_wide_structure.css";
Which is valid.
What happens if you use the more widely used syntax:
@import url(/css_global/site_wide_structure.css);
(PS here, just me, but I'd always prefix the url with / just to be on the safe side)
Second, what's the deal with this one?
<link rel="stylesheet" href="css_global/empty.css" type="text/css" media="screen" />
Here are the headers returned for a GET /css_global/empty.css
HTTP/1.1 200 OK
Date: Fri, 20 Sep 2002 02:29:13 GMT
Server: Apache/1.3.26 (Unix) PHP/4.1.2 FrontPage/5.0.2.2510
Last-Modified: Tue, 17 Sep 2002 17:55:55 GMT
ETag: "38a56-0-3d876cab"
Accept-Ranges: bytes
Content-Length: 0
Connection: close
Content-Type: text/css
Do you suppose that your 0 byte empty.css is confusing Netscape? I don't know, I don't have v7, so I can't see it. But your site looks OK to me in Moz 1.1.
(PS again, note that your content type is being returned correctly).
Last possibility that I would look at. Do you have any 404 errors coming from Netscape 7? If so, it's forming the relative URL's incorrectly.
Second, what's the deal with this one?
<link rel="stylesheet" href="css_global/empty.css" type="text/css" media="screen" />
hehee...this is used to correct a problem Internet Explorer has when loading pages- you'll see unstyled content for a moment then pop; styled content. This removes the flash you see.
Here are the headers returned for a GET /css_global/empty.css
How do you do that? Is this a function? (Might be something I overlooked, but I'm here to learn so I might as well ask;))
Do you suppose that your 0 byte empty.css is confusing Netscape?
Well, this was happening before I brought out the empty.css...I will try figiting with the relative URL's and see if anything changes-
Oh, and no error messages as of late...
Here are the headers returned for a GET /css_global/empty.cssHow do you do that? Is this a function? (Might be something I overlooked, but I'm here to learn so I might as well ask)
No function, just a program I wrote. If you'll check your logs about the time I posted, you'll see it's from googlebot, but not from a google IP address. I think you can get the same info on searchengineworld.com, here's a link:
[searchengineworld.com...]
Second, what's the deal with this one?
<link rel="stylesheet" href="css_global/empty.css" type="text/css" media="screen" />hehee...this is used to correct a problem Internet Explorer has when loading pages- you'll see unstyled content for a moment then pop; styled content. This removes the flash you see.
If I try to load this 0 byte file in Opera, it hangs.
But have you tried to eliminate this to see if it's the problem?
[edit and added]
I think that's the wrong URL for SEW. Someone help me, I can't find it. Anyway, there are plenty of progs out there that will give you the same info as the headers from any GET or HEAD request. Sometimes you need to check these from time to time.