Einzelnen Beitrag anzeigen

Benutzerbild von himitsu
himitsu

Registriert seit: 11. Okt 2003
Ort: Elbflorenz
43.231 Beiträge
 
Delphi 12 Athens
 
#5

Re: [CSS] 100% DIV-Layout, Scrollen innerhalb

  Alt 28. Mär 2010, 13:01
Das Problem ist leider, daß man als Größe irgendwie nicht sagen kann "bis zum Rand des Parent".
Und damit der Browser weiß, ab wann er scrollen muß, muß man ihm eine "feste" Größe mitteilen.
Also irgendwie so:
Code:
<html>
  <head>
   <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
   <style type="text/css">
      body,div,input,textarea,button {
         font-family: "Lucida Grande","Lucida Sans",Geneva,verdana,san-serif;
         font-size: 9pt;
      }

      #layout_left {
         width:          350px;
         height:         100%;
         overflow:      auto;
      }
         #layout_left_text {
            padding:      8px;
            overflow:      scroll;
         }
      </style>
      <script language="Javascript" type="text/javascript">
      <!--
         function myLoad()
         {
            document.getElementById('layout_left').overflow = 'hidden';
            document.getElementById('layout_left_text').height = ...;
         }
      //-->
      </script>
  </head>
  <body onLoad="myLoad()">
... wäre dann [Höhe von layout_left] - [Summe der Höhe aller anderen DIVs innerhalb von layout_left]
Garbage Collector ... Delphianer erzeugen keinen Müll, also brauchen sie auch keinen Müllsucher.
my Delphi wish list : BugReports/FeatureRequests
  Mit Zitat antworten Zitat