Moin Moin ich hab folgendes Problem ich will 2 Divs nebeneinander in 1 Div packen das Problem ist sobald ich 2 Divs einfüge dann zeigt er das eine richtig an und das andere das hackt er nach unten ab.
Um euch das zu verdeutlichen hier schonmal der Link:HIER
Meine CSS sieht der zeit so aus:
Und der HTML Code sieht so aus:
Das Problem trifft sowohl im Firefox als auch im IE auf und ich finde den Fehler einfach nicht bin auch noch Anfänger in sachen CSS.
Sitze schon knapp 2 Tage dran und verzweifel so langsam würde mich freuen wenn mir einer von euch helfen könnte.
Um euch das zu verdeutlichen hier schonmal der Link:HIER
Meine CSS sieht der zeit so aus:
Code:
body {
font-size:10px;
font-family:Verdana,;
text-align:left;
margin:0px;
padding:0px;
background-image:url(bg.gif);
background-color:#A1A1A1;
}
#box {
width:644px;
overflow:visible;
min-height:705px;
overflow:visible;
margin:0px auto;
text-align:left;
border:1px solid #797979;
background-color:white;
}
#box2 {
width:634px;
overflow:visible;
min-height:696px;
margin-left:4px;
margin-right:4px;
margin-bottom:3px;
margin-top:3px;
text-align:left;
border:1px solid #797979;
background-color:white;
}
#kopf {
background-image:url(head.jpg);
background-color:orange;
padding:0px;
width:634px;
height:122px;
margin:0px;
}
#navilinks {
background-color:transparent;
padding:0px;
width:164px;
height:122px;
float:left;
}
#green {
background-image:url(greennavi.jpg);
background-repeat:no-repeat;
background-color:#7CBD00;
width:163px;
height:154px;
margin-left:0px;
margin-top:0px;
position:absolut;
}
#n{
font-size:10px;
font-family:Verdana;
font-weight:700;
text-align:left;
color:white;
margin-top:10px;
margin-left:55px;
}
#work {
background-image:url(work.jpg);
background-repeat:no-repeat;
background-color:#CFCECF;
margin-top:10px;
margin-left:1px;
width:159px;
height:119px;
float:left;
border:1px solid #7A7A7A;
}
#tut {
background-image:url(tut.jpg);
background-repeat:no-repeat;
background-color:#CFCECF;
margin-top:10px;
margin-left:1px;
width:159px;
height:119px;
float:left;
border:1px solid #7A7A7A;
}
#login {
background-image:url(login.jpg);
background-repeat:no-repeat;
background-color:#CFCECF;
margin-top:10px;
margin-left:1px;
width:159px;
height:119px;
float:left;
border:1px solid #7A7A7A;
}
#box3 {
width:468px;
overflow:visible;
min-height:571px;
margin-left:166px;
margin-right:0px;
margin-bottom:0px;
padding:0px;
text-align:left;<br />
float:center;
background-color:#E6E6E6;
}
Und der HTML Code sieht so aus:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<link rel="stylesheet" title="Standard" media="screen, projection" href="screen.css" type="text/css" />
</head>
<body>
<div id="box">
<div id="box2">
<div id="kopf"></div>
<div id="green"></div>
<div id="box3">
Test Test Test Test<br /><br />Test Test Test
</div></div>
</div>
</body>
</html>
</html>
Sitze schon knapp 2 Tage dran und verzweifel so langsam würde mich freuen wenn mir einer von euch helfen könnte.