Viriditas: Problem mit Div-Höhe beim ausgeben von Werten mit PHP

Hallo

Ich möchte in einem DIV-Element die Werte meiner datenbank mit PHP ausgeben.
Das Problem dabei ist, dass das DIV-Element sich nicht seinem Inhalt von der Höhe her anpasst, d.h. die ausgegebenen Werte, in dem Falle Textstücke, fließen über den Rand des DIVs hinaus, weil sich dessen Höhe nicht verändert.

Gibt es da einen Trick?

Danke im Voraus!

  1. @@Viriditas:

    Das Problem dabei ist, dass das DIV-Element sich nicht seinem Inhalt von der Höhe her anpasst,

    Dann hast du wohl eine Höhe angegeben.

    Gibt es da einen Trick?

    Gib keine Höhe an.

    Live long and prosper,
    Gunnar

    --
    “New Jersey Hall of Fame? […] But then I ran through the list of names: Albert Einstein, Bruce Springsteen... my mother's going to like that. […] it's the only time she's going to hear those two names mentioned in the same sentence, so I'm going to enjoy it.” (Bruce Springsteen when inducted into the New Jersey Hall of Fame, 2008-05-04)
    1. Ich habe keine Höhe eingestellt, siehe hier:

      div.contentg { margin-bottom:10px;
      line-height:20px;
      padding:10px;
      width:500px;
      background-color:#CEF1B5;
      border:1px solid #4B6250;
      background:#CFE9BC;
      background-image:url(images/background_news.jpg);
      background-repeat:repeat-x;}

      Woran kann das also liegen?

      1. @@Viriditas:

        Ich habe keine Höhe eingestellt

        Offenbar doch, sonst würde die 'div'-Box ja das von dir gewünschte Verhalten haben.

        Woran kann das also liegen?

        An der Erdstrahlung.

        Live long and prosper,
        Gunnar

        --
        “New Jersey Hall of Fame? […] But then I ran through the list of names: Albert Einstein, Bruce Springsteen... my mother's going to like that. […] it's the only time she's going to hear those two names mentioned in the same sentence, so I'm going to enjoy it.” (Bruce Springsteen when inducted into the New Jersey Hall of Fame, 2008-05-04)