Ich möchte einen DIV-Container so darstellen, dass er am Boden
ausgerichtet ist und dann je nach Text nach oben vergrößert.
Zusätzlich soll dann aber ab einer bestimmten Höhe - wird von umgebenden DIV begrenzt - der DIV scrollbar sein.
Ich habs so probiert, das klappt auch, bis auf das scrollen, wenn der Text über den umschließenden Container hinaus geht.
#apDiv1 {
position:absolute;
width:200px;
height:200px;
background-color:green;
}
#apDiv2 {
position:absolute;
bottom:0;
width:100%;
background-color:red;
overflow:auto;
}
<div id="apDiv1">
<div id="apDiv2">{content}</div>
</div>
Gibts da Tricks wie man das hin bekommt. Mir fällt langsam nix mehr ein.