Anzeigefehler in Opera und IE. Firefox jedoch einwandfrei!
kablam
- html
Hallo zusammen
Ich wäre demjemigen welcher mir helfen könnte überaus dankbar.
Ich komme nicht weiter, habe einen funktionierenden Code welcher im Firefox läuft. Jedoch wird in Opera lediglich ein weisser Bereich und im IE die Hintergrundfarbe von HTML, body angezeigt.
Kann mir Anhand meinem Code weiterhelfen.
Mfg Kablam
``
<style type="text/css">
<!--
/* Beginn CSS-Code für Hintergrundaufbau */
html, body {
height: 100%;
margin: 0;
padding: 0;
background: #7C8D87;
}
#top {
float: left;
width: 1px; height: 50%;
margin-bottom: -384px;
}
#container {
clear: left;
position: relative;
margin: 0 auto;
width: 1024px;
height: 768px;
background: #7C8D87;
}
#head-section {
position: absolute;
left: 0px;
top: 0px;
width: 1024px;
height: 225px;
z-index: 1;
background-image: url(../img/1024x225_heacsection.jpg);
background-repeat: no-repeat;
}
#nav-section {
position: absolute;
left: 0px;
top: 225px;
width: 204px;
height: 543px;
z-index: 2;
background-image: url(../img/204x543_Navsection_left.jpg);
background-repeat: no-repeat;
}
#main-section {
position: absolute;
left: 204px;
top: 225px;
width: 820px;
height: 526px;
z-index: 3;
background-image: url(../img/820x526_mainsection_transparenty.png);
background-repeat: no-repeat;
}
#feet-section {
position: absolute;
left: 204px;
top: 751px;
width: 820px;
height: 17px;
z-index: 4;
background-image: url(../img/820x17_feetsection_transparent.png);
background-repeat: no-repeat;
}
/* Ende CSS-Code für Hintergrundaufbau */
</style>
<script type="text/javascript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>
<body>
<div id="top"></div>
<div id="container">
<div id="head-section"></div>
<div id="nav-section"></div>
<div id="main-section"></div>
<div id="feet-section"></div>
</div>
</body>
</html>
Ich komme nicht weiter, habe einen funktionierenden Code welcher im Firefox läuft. Jedoch wird in Opera lediglich ein weisser Bereich und im IE die Hintergrundfarbe von HTML, body angezeigt.
Kann mir Anhand meinem Code weiterhelfen.
Hast du mal den Code validiert?
http://validator.w3.org/#validate_by_input
Struppi.
Hi,
<style type="text/css">
<!--
Wo schliesst du eigentlich diesen HTML-Kommentar wieder?
MfG ChrisB
Hallo ChrisB
Vielen Dank für deinen Hinweis, habe es in der Zwischenzeit bemerkt.
Hi,
<style type="text/css">
<!--Wo schliesst du eigentlich diesen HTML-Kommentar wieder?
MfG ChrisB