Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Firefox cannot read secure stylesheet with XHTML doctype

Status
Not open for further replies.

xjs

Programmer
Apr 4, 2002
21
US
Hi all,

I have been searching the web looking for a solution and can not find the answer I need. I have an XHTML web page coded with an XHTML strict doctype that references a style sheet on a secure server. IE6 renders this page as expected but Firefox 2.0.0.3 seems to ignore the stylesheet. Firefox doesn't ignore the stylesheet if the doctype is removed.

I need the doctype in place because some styles don't render correctly without it there.

The code starts off as:

<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' '
<html xmlns=" xml:lang="en-us" lang="en-us">
<head>
<title>Title Here</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<style type="text/css">@import " </style>

I would appreciate any insight or solution to this, thanks.
 
Have you tried using the <link> tag to pull in your external stylesheet?

Here is an example of the syntax of the <link> tag:

Code:
<link rel="stylesheet" href="general.css" media="screen" />


[monkey][snake] <.
 
monksnake,

I did try that before and had the same problem. Thanks for the suggestion.

xjs
 
Without knowing what your page looks like, I can throw this suggestion up.

Since your page works correctly without a DOCTYPE in FF, perhaps you have some invalid XHTML in your code that is causing your styles to be ignored.

[monkey][snake] <.
 
I had checked that too. I made sure that the page validated as XHTML strict and the problem still occured.

I also tried an XHTML transitional doctype and had the same results. The problem doesn't happen on an unsecure server.

I'm not sure what else to try.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top