Chciałbym wstawić div-a z tekstem o zmiennej długości (inner), który przesłaniałby 3 div-y (top, mid i bot) z pewnymi background-image. Oczywiście można ustawić:
#inner { position: absolute; top: 20px; left: 20px; }
natomiast chodzi mi o to, żeby w miarę zwiększania się tekstu w div-ie inner, zwiększała się wysokość mid, natomiast div-y top i bot miały stałą wysokość. Da się to zrobić w czystym CSS?
Szkic:
Kod
+-top-----------------------------------------+
| +-inner------------------------------+ |
| | | |
+-mid-| text text text text text text |--+
| | text text text text text text | |
| | text text text text text text | |
| | text text text text text text | |
| | text text text text text text | |
+-bot-| text text text text text text |--+
| | | |
| +------------------------------------+ |
+---------------------------------------------+
| +-inner------------------------------+ |
| | | |
+-mid-| text text text text text text |--+
| | text text text text text text | |
| | text text text text text text | |
| | text text text text text text | |
| | text text text text text text | |
+-bot-| text text text text text text |--+
| | | |
| +------------------------------------+ |
+---------------------------------------------+
HTML: