Hallo, bin langsam am verzweifeln... sobald ich die ersten zwei Zeilen im folgenden HTML Code (Doctype...) einfüge, werden alle CSS Styles ignoriert. Ich verstehe das nicht. Lasse ich die Doctype-Angabe einfach weg, werden zwar die CSS Styles nicht mehr ignoriert, dafür funktioniert im IE das Lightbox Skript nicht richtig (die Bilder kleben dann am oberen Browserrand statt mit etwas Abstand zur oberen Kante). Ergänzend sollte ich noch erwähnen, daß der folgende Quelltext von einen PHP Script aus mit include geladen wird. Kann es daran liegen? Ich hoffe ich bin hier richtig, könnte natürlich auch ein html oder php Problem sein. Weiss jemand Rat??
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
<script src="js/prototype.js" type="text/javascript"></script>
<script src="js/scriptaculous.js?load=effects,builder" type="text/javascript"></script>
<script src="js/lightbox.js" type="text/javascript"></script>
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />
<base target="_self">
<style type="text/css">
<!--
input, select, textarea
{ font-size:12px; font-family:Arial, Helvetica, Futura, Verdana, sans-serif; font-weight:standard; }
td
{ font-size:14px; font-family:Arial, Helvetica, Futura, Verdana, sans-serif; font-weight:standard; }
input, select, textarea
{ color:#000000; }
.Bereich
{ background-color:#e1e1e1; width:336px; border:1px solid #000000; }
.Feld
{ background-color:#cccccc; border:1px solid #000000; }
.Auswahl
{ background-color:#E6E4B3; border:1px solid #000000; font-size:12px }
.Button
{ font-weight:bold; background-color:#e1e1e1; color:#000000; width:150px; height:23px; border:1px solid #000000; }
.Button1
{ font-weight:bold; background-color:#333333; color:#c0c0c0; width:30px; height:19px; border:1px solid #000000; }
.Button2
{ font-weight:standard; background-color:#666666; color:#000000; width:90px; height:19px; border:1px solid #333333; }
.Fontklein1
{ font-size:10px; font-family:Arial, Helvetica, Futura, Verdana, sans-serif; color:#000000; font-weight:standard;}
.Fontklein0
{ font-size:11px; font-family:Arial, Helvetica, Futura, Verdana, sans-serif; color:#cccccc; font-weight:standard;}
.Fontklein4
{ font-size:11px; font-family:Arial, Helvetica, Futura, Verdana, sans-serif; color:#000000; font-weight:standard;}
.Fontpreis1
{ font-size:12px; font-family:Arial, Helvetica, Futura, Verdana, sans-serif; color:#cccccc; font-weight:bold;}
.Fontpreis0
{ font-size:12px; font-family:Arial, Helvetica, Futura, Verdana, sans-serif; color:#cccccc; font-weight:standard;}
.Fontgross1
{ font-size:14px; font-family:Arial, Helvetica, Futura, Verdana, sans-serif; color:#000000; font-weight:bold;}
.Fontangebot
{ font-size:14px; font-family:Arial, Helvetica, Futura, Verdana, sans-serif; color:#000000; font-weight:bold;}
h1 { font-size:28px; font-family:Arial, Helvetica, Futura, Verdana, sans-serif; color:#cccccc; font-weight:standard;}
h2 { font-size:16px; font-family:Arial, Helvetica, Futura, Verdana, sans-serif; color:#cccccc; font-weight:standard;}
h3 { font-size:15px; font-family:Arial, Helvetica, Futura, Verdana, sans-serif; color:#cccccc; font-weight:standard;}
p { font-size:13px; font-family:Arial, Helvetica, Futura, Verdana, sans-serif; color:#cccccc; font-weight:standard;}
.bordered { border:0px solid #aaa; }
a:link { font-weight:standard; color:#000000; text-decoration:none; }
a:visited { font-weight:standard; color:#000000; text-decoration:none; }
a:focus { font-weight:standard; color:#000000; text-decoration:none; }
a:hover { font-weight:bold; color:#ff0000; text-decoration:none; }
a:active { font-weight:standard; color:#000000; text-decoration:none; }
BODY {scrollbar-face-color: #000000;
scrollbar-shadow-color: #cccccc;
scrollbar-highlight-color: #cccccc;
scrollbar-3dlight-color: #000000;
scrollbar-darkshadow-color: #000000;
scrollbar-track-color: #000000;
scrollbar-arrow-color: #cccccc;
bgproperties: fixed; } -->
</style>
<style fprolloverstyle="" type="text/css">
<!--
A:hover {color: #FF0000}
-->
</style>
<script language="JavaScript1.2" fptype="dynamicanimation" src="../animate.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
-->
</script>
<style fprolloverstyle="" type="text/css">
A:hover {font-weight: bold}
</style>
</head>