Ich habe ein Problem mit zwei nebeneinander liegenden DIVs beim IE. Beim Firefox sieht alles ganz gut aus. Beim IE werden leider die ersten Zeiten der rechten DIV-Box um einige Pixel nach rechts verschoben. Ich habe hier ein Beispielcode eingetragen. Gibt es da irgendeine Möglichkeit, das ganze sauber aussehen zu lassen?
Code:
<html>
<head>
<style>
.a { border:2px solid #00aaff;
width: 97%;
}
.b { float:left;
width:20px;
text-align:left;
padding-top: 5px;
padding-bottom: 1px;
padding-left: 2px;
}
.c { background-color: #eeeeee;
text-align:left;
padding-left: 40px;
padding-top: 5px;
padding-bottom: 5px;
border: 0px solid #000000;
}
</style>
</head>
<body>
<div align="center">
<div class="a">
<div class="b"> abc </div>
<div class="c"> Lorem Ipsum is simply dummy text of the printing
and typesetting industry. Lorem Ipsum has been the industry's
standard dummy text ever since the 1500s, when an unknown printer
took a galley of type and scrambled it to make a type specimen book.
It has survived not only five centuries, but also the leap into
electronic typesetting, remaining essentially unchanged. It was
popularised in the 1960s with the release of Letraset sheets
containing Lorem Ipsum passages, and more recently with desktop
publishing software like Aldus PageMaker including versions of
Lorem Ipsum.
</div>
</div>
</div>
</body>
</html>

Kommentar