bubble: overflow: scroll

Hi,

ich hab ein DIV-Element in dem ab und an mal "zu viel" drinn ist, nu gibt es ja die tolle overflow Eigenschaft in CSS, allerdings möchte ich, dass wenn der Inhalt ohne Probleme reinpasst in das DIV, die Scrollbalken nicht sichtbar sind.

Wenn ich overflow: scroll aber setzte sind sie immer da, wie kann ich die weg machen?

MfG
bubble

  1. Hallo,

    ich hab ein DIV-Element in dem ab und an mal "zu viel" drinn ist, nu gibt es ja die tolle overflow Eigenschaft in CSS, allerdings möchte ich, dass wenn der Inhalt ohne Probleme reinpasst in das DIV, die Scrollbalken nicht sichtbar sind.
    Wenn ich overflow: scroll aber setzte sind sie immer da, wie kann ich die weg machen?

    solange die Höhe des div-Containers fest ist (oder zumindest ein festes Maximum hat), genügt overflow:auto.

    Ciao,
     Martin

    --
    Das einzige Problem beim Nichtstun: Man weiß nie, wann man damit fertig ist.
    Selfcode: fo:) ch:{ rl:| br:< n4:( ie:| mo:| va:) de:] zu:) fl:{ ss:) ls:µ js:(
    1. Omg. Hab ich bei http://de.selfhtml.org/css/eigenschaften/positionierung.htm#overflow total übersehen >.<

      Danke, klappt wunderbar :)

      MfG
      bubble

      1. Om nah hoo pez nyeetz, bubble!

        Omg. Hab ich bei http://de.selfhtml.org/css/eigenschaften/positionierung.htm#overflow total übersehen >.<

        Etwas ausführlicher auch im Wiki.

        Matthias

        --
        1/z ist kein Blatt Papier.