Hallo zusammen
wenn ich text hinzufüge wechselts mir irgendwie die zeile nicht mehr automatisch, d.h. der gesamte text im div "contents" wird überschrieben, wenn er eigentlich die zeile wechseln sollte. was mache ich nur falsch? ich hab nun ca. 2h gegoogelt und so weiter aber ich finde einfach nichts.
des weiteren wird meine seite nur im internet explorer korrekt angezeigt. in google chrome beispielsweise kommt nichtmal mehr die richtige hintergrundseite.
bitte lacht mich nicht aus, dies ist meine erste seite und komplett nach verschiedenen tutorials, die ich im web gefunden habe zusammengestellt.
für eure hilfe wäre ich sowas von dankbar!!!
liebe grüsse
gigu
meine seite:
<!--Force IE6 into quirks mode with this comment tag-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="XHTML namespace" lang="en" xml:lang="en">
<style type="text/css">
@import url ("styles.css");
</style>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>bla</title>
</head>
<body>
<div id="container">
<div id="header">
<iframe name="header" align="left" src="header.html" width="1060" height="100" frameborder=0 scrolling="no"></iframe>
</div>
<div id="mainnav">
<iframe name="mainnav" align="left" src="navbox.html" width="900" height="28" frameborder=0 scrolling="no"></iframe>
</div>
<div id="flash">
<iframe name="flashnews" align="left" src="flashnewsbox.html" width="150" height="200" frameborder=0 scrolling="auto"></iframe>
</div>
<div id="kfeedback">
<iframe name="kfeedback" align="left" src="kfeedbackbox.html" width="150" height="200" frameborder=0 scrolling="auto"></iframe>
</div>
<div id="gzahlen">
<iframe name="gzahlen" align="left" src="gzahlenbox.html" width="150" height="200" frameborder=0 scrolling="auto"></iframe>
</div>
<div id="contents">
<br>
<h1>bla</h1>
<h2>bla</h2>
<p>Hallo Guten Tag HAllo Hallo Guten Tag HAllo Hallo Guten Tag HAllo Hallo Guten Tag
HAllo Hallo Guten Tag HAllo Hallo Guten Tag HAllo Hallo Guten Tag HAllo Hallo
Guten Tag HAllo Hallo Guten Tag HAllo Hallo Guten Tag HAllo Hallo Guten Tag
HAllo Hallo Guten Tag HAllo Hallo Guten Tag HAllo Hallo Guten Tag HAllo Hallo
Guten Tag HAllo Hallo Guten Tag HAllo Hallo Guten Tag HAllo Hallo Guten Tag
HAllo Hallo Guten Tag HAllo Hallo Guten Tag HAllo </p>
<br>
<p>Hallo Test. Hallo Test. Hallo Test. Hallo Test. Hallo Test. Hcvcvbcvb cvb cvbcvbc vb cvb cvbcvbcv vbc vbcv bcvb cvballo Test. Hallo Test. Hallo Test. Hallo Test. Hallo Test. Hallo Test. Hallo Test. Hallo Test. Hallo Test. Hallo Test. Hallo Test. Hallo Test. Hallo Test. Hallo Test. Hallo Test. Hallo Test. Hallo Test. Hallo Test. Hallo Test. Hallo Test. </p>
<br>
</div>
</div>
</body>
</html>
mein css:
body
{
margin: 0px auto;
padding: 0px;
width:100%;
height:100%;
}
#conatiner
{
}
#header
{
top: 10px;
left: 20px;
position: absolute;
background-color: #104E8B;
color: #104E8B;
text-align: left;
border: 1px solid black;
height: 100px;
width: 1060px;
}
#mainnav
{
top: 115px;
left: 20px;
position: absolute;
background-color: #FFA500;
color: #FFA500;
text-align: left;
border: 1px solid black;
height: 28px;
width: 900px;
z-index:1;
}
#contents
{
top: 150px;
left: 20px;
position: absolute;
background-color: #F5F5F5;
color: #F5F5F5;
text-indent: 7px;
text-align: left;
border: 1px solid black;
width: 900px;
height: 615px;
overflow:scroll;
max-width: 300px;
}
#flash
{
top: 115px;
left: 930px;
position: absolute;
background-color: #F5F5F5;
color: #F5F5F5;
text-align: left;
border: 1px solid black;
height: 200px;
width: 150px;
}
#kfeedback
{
top: 325px;
left: 930px;
position: absolute;
background-color: #F5F5F5;
color: #F5F5F5;
text-align: left;
border: 1px solid black;
height: 200px;
width: 150px;
}
#gzahlen
{
top: 535px;
left: 930px;
position: absolute;
background-color: #F5F5F5;
color: #F5F5F5;
text-align: left;
border: 1px solid black;
height: 200px;
width: 150px;
}
h1
{
font-family:"Verdana";
font-size:16px;
color:#FFA500;
text-align:left
}
h2
{
font-family:"Verdana";
font-size:14px;
color:#575757;
text-align:left;
}
h3
{
font-family:"Verdana";
font-size:12px;
color:#ffa500;
text-align:left;
}
p
{
font-family:"Verdana";
font-size:11px;
color:#000000;
text-align:left;
line-height: 0px;
}
wenn ich text hinzufüge wechselts mir irgendwie die zeile nicht mehr automatisch, d.h. der gesamte text im div "contents" wird überschrieben, wenn er eigentlich die zeile wechseln sollte. was mache ich nur falsch? ich hab nun ca. 2h gegoogelt und so weiter aber ich finde einfach nichts.
des weiteren wird meine seite nur im internet explorer korrekt angezeigt. in google chrome beispielsweise kommt nichtmal mehr die richtige hintergrundseite.
bitte lacht mich nicht aus, dies ist meine erste seite und komplett nach verschiedenen tutorials, die ich im web gefunden habe zusammengestellt.
für eure hilfe wäre ich sowas von dankbar!!!
liebe grüsse
gigu
meine seite:
<!--Force IE6 into quirks mode with this comment tag-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="XHTML namespace" lang="en" xml:lang="en">
<style type="text/css">
@import url ("styles.css");
</style>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>bla</title>
</head>
<body>
<div id="container">
<div id="header">
<iframe name="header" align="left" src="header.html" width="1060" height="100" frameborder=0 scrolling="no"></iframe>
</div>
<div id="mainnav">
<iframe name="mainnav" align="left" src="navbox.html" width="900" height="28" frameborder=0 scrolling="no"></iframe>
</div>
<div id="flash">
<iframe name="flashnews" align="left" src="flashnewsbox.html" width="150" height="200" frameborder=0 scrolling="auto"></iframe>
</div>
<div id="kfeedback">
<iframe name="kfeedback" align="left" src="kfeedbackbox.html" width="150" height="200" frameborder=0 scrolling="auto"></iframe>
</div>
<div id="gzahlen">
<iframe name="gzahlen" align="left" src="gzahlenbox.html" width="150" height="200" frameborder=0 scrolling="auto"></iframe>
</div>
<div id="contents">
<br>
<h1>bla</h1>
<h2>bla</h2>
<p>Hallo Guten Tag HAllo Hallo Guten Tag HAllo Hallo Guten Tag HAllo Hallo Guten Tag
HAllo Hallo Guten Tag HAllo Hallo Guten Tag HAllo Hallo Guten Tag HAllo Hallo
Guten Tag HAllo Hallo Guten Tag HAllo Hallo Guten Tag HAllo Hallo Guten Tag
HAllo Hallo Guten Tag HAllo Hallo Guten Tag HAllo Hallo Guten Tag HAllo Hallo
Guten Tag HAllo Hallo Guten Tag HAllo Hallo Guten Tag HAllo Hallo Guten Tag
HAllo Hallo Guten Tag HAllo Hallo Guten Tag HAllo </p>
<br>
<p>Hallo Test. Hallo Test. Hallo Test. Hallo Test. Hallo Test. Hcvcvbcvb cvb cvbcvbc vb cvb cvbcvbcv vbc vbcv bcvb cvballo Test. Hallo Test. Hallo Test. Hallo Test. Hallo Test. Hallo Test. Hallo Test. Hallo Test. Hallo Test. Hallo Test. Hallo Test. Hallo Test. Hallo Test. Hallo Test. Hallo Test. Hallo Test. Hallo Test. Hallo Test. Hallo Test. Hallo Test. </p>
<br>
</div>
</div>
</body>
</html>
mein css:
body
{
margin: 0px auto;
padding: 0px;
width:100%;
height:100%;
}
#conatiner
{
}
#header
{
top: 10px;
left: 20px;
position: absolute;
background-color: #104E8B;
color: #104E8B;
text-align: left;
border: 1px solid black;
height: 100px;
width: 1060px;
}
#mainnav
{
top: 115px;
left: 20px;
position: absolute;
background-color: #FFA500;
color: #FFA500;
text-align: left;
border: 1px solid black;
height: 28px;
width: 900px;
z-index:1;
}
#contents
{
top: 150px;
left: 20px;
position: absolute;
background-color: #F5F5F5;
color: #F5F5F5;
text-indent: 7px;
text-align: left;
border: 1px solid black;
width: 900px;
height: 615px;
overflow:scroll;
max-width: 300px;
}
#flash
{
top: 115px;
left: 930px;
position: absolute;
background-color: #F5F5F5;
color: #F5F5F5;
text-align: left;
border: 1px solid black;
height: 200px;
width: 150px;
}
#kfeedback
{
top: 325px;
left: 930px;
position: absolute;
background-color: #F5F5F5;
color: #F5F5F5;
text-align: left;
border: 1px solid black;
height: 200px;
width: 150px;
}
#gzahlen
{
top: 535px;
left: 930px;
position: absolute;
background-color: #F5F5F5;
color: #F5F5F5;
text-align: left;
border: 1px solid black;
height: 200px;
width: 150px;
}
h1
{
font-family:"Verdana";
font-size:16px;
color:#FFA500;
text-align:left
}
h2
{
font-family:"Verdana";
font-size:14px;
color:#575757;
text-align:left;
}
h3
{
font-family:"Verdana";
font-size:12px;
color:#ffa500;
text-align:left;
}
p
{
font-family:"Verdana";
font-size:11px;
color:#000000;
text-align:left;
line-height: 0px;
}