@up
To wcale nie wydaje się być tak proste, wtedy tekst nie opływa (co prawda nie wiem czy na komórkach, ale przy divach na pewno.
Nie znalazłam prostego rozwiązania, pewnie kluczę gdzieś mocno naokoło i kombinuję jak koń pod górę, ale bez js nie udało mi się otrzymać spodziewanego efektu a i z js nie do końca taki, jakiego powinnam się spodziewać. Na divach:
function oblicz()
{
var height1 = document.getElementById('tekst').scrollHeight;
height1 = height1 - 125;
document.getElementById('wypelniacz').style.height = height1 + "px";
}
<table><tr><td style="width: 300px; height: 300px;"> <div style="width: 1px; float: right; clear: right;" id="wypelniacz"></div> <div style="width: 100px; height: 100px; background: red; float: right; clear: right; margin-top: 20px;"></div> <p style="" id="tekst">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. 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.
Trzeba się tylko pobawić marginesami i odejmowaną wartością w skrypcie. Na szybko nic innego mi do głowy nie przychodzi. Chociaż pewnie pomyślę, bo problem mnie zaciekawił.