jghj: 2. parentebene vergrößert nicht

Beitrag lesen

Ich vermute ich du hast die parenteben absolut positioniert.

falsch :-)

Ohne Beispielcode wird es wohl keine Lösung geben.

<html>

<head>
 <style>
 div.inhalt  {
  background-color:  #cccccc;
  width:    400px;
  border:    1px solid #000000;
  min-height:   50px;
 }

div.inhalt2  {
  background-color:  #666666;
  width:    300px;
  min-height:   50px;
 }

div.text  {
  position:   relative;
  float:    left;
  border:    1px solid #ff0000;

}

div.text2  {
  position:   relative;
  float:    right;
  border:    1px solid #00ff00;

}
 </style>
</head>

<body>

<div class="inhalt">
 <div class="text">
  <div class="inhalt2">
   test<br>
   test<br>
   test<br>
   test<br>
   test<br>
   test<br>
   test<br>
   test<br> test<br>
   test<br>
   test<br>
   test<br>
   test<br>
   test<br>
   test<br>
   test<br>
  </div>
 </div>

<div class="text2">

test<br>
  test<br>
  test<br>
  test<br>
  test<br>

</div>
</div>

</body>

</html>