Archivlink: javarea.de Forum > (X)HTML & CSS (allgemein) > Firefox und CSS
Vollständigen Link anzeigen: javarea.de Forum > (X)HTML & CSS (allgemein) > Firefox und CSS

Pages: [1]

geschrieben von Johannes1904 am 18.08.2005 - 10:01
In einer von mir produzierten HP stelle ich fest, daß Firefox offenbar Angaben aus einem eingebundenen CSS Sheet nicht interpretiert. Ich kann mich auf den Kopf stellen, ich finde einfach nicht den Grund, zumal eine ganz entsprechend aufgebaute HP funktioniert - auch ein Code Check hat keinen Hinweis gebracht.

Der Fehler tritt auf in folgender URL:

http://www.i3l-herrenberg.de

Ein Vergleich zw. IE und Firefox zeigt den Unterschied.

Richtig funktioniert es in folgender URL:

http://www.michalowsky-online.de/st/

Kommt jemand vielleicht auf eine Idee, was da falsch sein könnte?

So sieht das aus:

<link rel=stylesheet type="text/css" href="css.css" >

und das Style Sheet:

body {font-family: "Verdana"; color:#000099;
scrollbar-track-color: #fcfacc;
scrollbar-base-color: #fcfacc;
background-attachment: fixed;
background-color:lightyellow
}


h2 {font-size: 12pt; text-align: center; color: #000099; font-weight: bold }
h5 {font-size: 10pt; text-align: center; font-weight: 400; color: #000066}

a:link { color:#000099;text-decoration: none }
a:active { color:#000099;text-decoration: none }
a:visited { color:#1F00FF;text-decoration: none }
a:hover { color:#007F00; font-size: 10pt; font-weight: 800; text-decoration: none}
ul {list-style-type: circle}

geschrieben von Jan am 18.08.2005 - 10:46
Hi!

Änder dein Code mal so ab:

HTML-Quelltext
1: 
2: 
3: 
4: 
5: 
6: 
7: 
8: 
9: 
10: 
11: 
12: 
13: 
14: 
15: 
16: 
17: 
18: 
19: 
20: 
21: 
22: 
23: 
24: 
25: 
26: 
27: 
28: 
29: 
30: 
<head>
   <meta http-equiv="imagetoolbar" content="no">
   <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
   <META NAME="GENERATOR" CONTENT="Mozilla/4.01 [de] (Win95; I) [Netscape]">
   <META NAME="Microsoft Border" CONTENT="none">
   <META NAME="description" CONTENT="Informationen der Initiative 3. Lebensalter Herrenberg e.V.">
   <META NAME="keywords" CONTENT="Senioren, Senior, senior, seniors,  Herrenberg, Rentner, Pensionaer, Pensionaere, Alte, Aeltere, Lebensalter, 3. Lebensalter, Drittes Lebensalter, Initiative">
   <META NAME="copyright" CONTENT="Initiative 3. Lebensalter Herrenberg e.V.">
   <META NAME="author" CONTENT="Johannes Michalowsky">
   <META NAME="publisher" CONTENT="Initiative 3. Lebensalter Herrenberg e.V.">
   <META NAME="Content-Language" CONTENT="German">


   <title> HP der Initiative 3. Lebensalter Herrenberg e.V.</title>


<style type="text/css">
<!--
.wd  {   font-size: 8pt; text-align: center; font-weight: bold; margin-left:10px; margin-right: 10px}
.we  {   font-size: 10pt; text-align: center; font-weight: bold; margin-left:10px; margin-right: 10px}
td {   font-size: 12pt; text-align: center;  font-weight: bold}
.c {   font-size: 9pt; text-align: center; }
.d { text-align: justify; font-style: italic; background-color: #faf655}

td {font-size: 10pt; text-align: left; font-weight: bold }
-->
</style>
<link rel="stylesheet" type="text/css" href="css.css" >

</head>


und deine CSS-Datei (css.css):

HTML-Quelltext
1: 
2: 
3: 
4: 
5: 
6: 
7: 
8: 
9: 
10: 
11: 
12: 
13: 
14: 
15: 
16: 
body {font-family: "Verdana"; color:#000099;
scrollbar-track-color:  #fcfacc;
scrollbar-base-color: #fcfacc;
  background-attachment: fixed;
  background-color:lightyellow
}


h2   {font-size: 12pt; text-align: center; color: #000099; font-weight: bold }
h5 {font-size: 10pt; text-align: center;   font-weight: 400; color: #000066}

a:link {  color:#000099;text-decoration: none   }
a:active {  color:#000099;text-decoration: none   }
a:visited {  color:#1F00FF;text-decoration: none  }
a:hover  {  color:#007F00; font-size: 10pt; font-weight: 800; text-decoration: none}
ul {list-style-type: circle}


In einer CSS-Datei dürfen niemals HTML-Tags auftauchen!

Gruß
Jan

geschrieben von Johannes1904 am 18.08.2005 - 13:37
Herzlichen Dank für die Reaktion - nur ich sehe gar nicht, wo da was gegenüber meinem Original geändert ist.

Und wo ist ein html-Tag im CSS?

geschrieben von Cluster am 18.08.2005 - 14:35
Hallo!

In Deiner css.css steht vor den CSS-Angaben

<style type="text/css">
<!--

und danach das hier

</style> .

Diese Tags haben darin nichts zu suchen.

geschrieben von Johannes1904 am 18.08.2005 - 16:54
Ja, danke sehr, das ist richtig - hatte ich schon am 12.8. geändert und nicht überspielt!


Powered by: JBB v.2.0.4 Copyright ©2000-2006, www.javarea.de.