Ja, das wäre ne Alternative, aber ich habe das Problem, dass ich Bilder in dieses Div lade und die würde ich wohl auch per background-image laden, nur habe ich dann das Problem, dass sich diese ja auch nicht skalieren lässt, was aber bei meinem Div unbedingt notwendig ist.
Also, wenn noch jemand Ideen hat
Gruß, Toast
Edit: Ich habe nach einigen Überlegungen eine Lösung gefunden - ein neuer Durchbruch?

.
Ich habe das Div, welches die Länge nicht vorgeben soll mit overflow: hidden und position: absolute versehen (die anderen natürlich mit position: relative). Der Code sieht nun wie folgt aus und funktioniert (getestet) in IE7, IE8, FF.
|
HTML
|
1
2
3
4
5
6
7
8
9
10
|
<div style="height: auto; position: relative; overflow: hidden; width: 90%; background-color: #ff3;">
<div style="position: relative; padding-bottom: 32768px; margin-bottom: -32768px; float: left; background-color: #00f; width: 20%;">
Test<br><br>
</div>
<div style="position: absolute; overflow: hidden; padding-bottom: 32768px; margin-bottom: -32768px; float: right; background-color: #0f0; width: 80%;">
Test
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
</div>
<div style="clear: both;"></div>
</div>
|
Gruß, Toast
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Toast« (16. März 2011, 10:15)