span class problem

Status
Nicht offen für weitere Antworten.
C

camilo

hi, ich habe folgendes problem:
ich habe in einer externen style sheet datei eine textclass definiert, das heißt, ein beliebiger text soll, sofern der span class tag verwendet wird, so formatiert werden, wie in der datei beschrieben. wenn ich dann den text so formatiere: "<span class="text">blabla</span>", funktioniert das zwar im internet explorer ganz gut, nur im netscape 6.0 wird der text nicht formatiert. kann mir jemand sagen wie ich dieses problem umgehen kann?
 
Sollte eigentlich funktionieren. Vielleicht
schickst Du mal den Quellcode oder ´nen Link,
damit man was zum gucken hat.

Tribal
 
hab schnell eine test seite erstellt: http://www.valid-arts.net/test.html

wie gesagt, funktioniert nur mit dem internet explorer.
hier noch der code für den stylesheet:

<html>
<head>
<title></title>
</head>
<style type="text/css">
<!--
.text { font-family:arial; font-size:8pt }
body { background-color:213913; margin-left:30; margin-width:0;
margin-heigt:0; margin-top:20; margin-right:0; margin-bottom:0; }

a:link { font-family:arial; color:FFFFFF; text-decoration:none; font-weight:bold;
font-size:8pt; }
a:active { font-family:arial; color:FFFFFF; text-decoration:none; font-weight:bold;
font-size:8pt; }
a:visited { font-family:arial; color:FFFFFF; text-decoration:none; font-weight:bold;
font-size:8pt; }
a:hover { font-family:arial; color:FFFFFF; text-decoration:none; font-weight:bold;
font-size:8pt; }
-->
</style>
<body>
</body>
</html>
 
hi!

das liegt daran, dass in deiner externen css datei mehr steht, als es soll. in so eine externe datei kommt nur:

<!--

.text { font-family:arial; font-size:8pt;}
body { background-color:1E1E1C; margin-left:0; margin-width:0;
margin-heigt:0; margin-top:0; margin-right:0; margin-bottom:0; }

a:link { font-family:arial; color:FFFFFF; text-decoration:none; font-weight:bold;
font-size:8pt; }
a:active { font-family:arial; color:FFFFFF; text-decoration:none; font-weight:bold;
font-size:8pt; }
a:visited { font-family:arial; color:FFFFFF; text-decoration:none; font-weight:bold;
font-size:8pt; }
a:hover { font-family:arial; color:FFFFFF; text-decoration:none; font-weight:bold;
font-size:8pt; }
-->

mehr nicht.
d.h. KEIN HTML. und auch kein <style> usw.
Der IE ist ziemlich fehlertolerant, deshalb zeigt er es, Deiner Meinung nach, richtig an, obwohl es ja eigentlich falsch bzw. fehlerhaft ist.

Grüsse,
Shiivva
 
Status
Nicht offen für weitere Antworten.

Neue Beiträge

Zurück