mediengestalter.info
FAQ :: Mitgliederliste :: MGi Team

Willkommen auf dem Portal für Mediengestalter

Aktuelles Datum und Uhrzeit: Do 18.04.2024 19:05 Benutzername: Passwort: Auto-Login

Thema: Tabelle flexibele in der Höhe scrollen lassen vom 21.08.2007

Neues Thema eröffnen   Neue Antwort erstellen MGi Foren-Übersicht -> Allgemeines - Nonprint -> Tabelle flexibele in der Höhe scrollen lassen
Autor Nachricht
Ulitasch
Threadersteller

Dabei seit: 18.05.2006
Ort: -
Alter: -
Geschlecht: -
Verfasst Di 21.08.2007 18:20
Titel

Tabelle flexibele in der Höhe scrollen lassen

Antworten mit Zitat Zum Seitenanfang

Ich habe eine Tabelle, die je nachdem wieviel Text es vom Database bekommt ein Scroll bekommt oder nicht..

Code:
#text_kl {
   position: absolute;
   width: 303px;
   text-align: left;
   padding-right: 15px;
   padding-bottom: 5px;
   overflow: auto;
   height: 150px;
}



Ich will aber die Höhe flexibel machen, so, daß es immer den restlichen Raum einer festgelegten Tabelle einnimmt, in der sie liegt.

Am besten versteht man was ich mein vielleicht wenn man den link besucht:
Hier ist meine Tabelle die eine feste Höhe hat, ich will sie aber flexibel..

Hat jemand ne Ahnung wie man sowas machen könnte??
über jede Hilfe/Tips wär ich sehr dankbar, ich weiß nicht mehr weiter..

Hier noch der Code der ganzen Text-Containers.

Code:
<div id='text_projecten'>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="42" valign="top">
    <img src="projects/<?php echo $row_projecten_rs['titel_file']; ?>" alt="<?php echo $row_projecten_rs['titel_menu']; ?>" class="padding20" />          </td>
  </tr>
  <tr>
    <td height="100%" valign="top">
    <div class="padding20" id="text_kl">
      <p><em><?php echo $row_projecten_rs['inleiding']; ?></em></p>
      <p><?php echo $row_projecten_rs['text']; ?></p>
    </div>
    </td>
  </tr>
  <tr>
    <td valign="bottom">     
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td valign="bottom">
            <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#666666">
              <?php if ($row_projecten_rs[opdrachtgever] > '0') { // Show if recordset not empty ?>
              <tr>
                <td width="28%" align="left" valign="top"><img src="img/opdrachtgever.gif" alt="opdrachtgever" width="86" /></td>
                <td width="72%" valign="top" class="small"><?php echo $row_projecten_rs['opdrachtgever']; ?></td>
              </tr>
              <?php } // Show if recordset not empty ?>
              <?php if ($row_projecten_rs[constructeur] > '0') { // Show if recordset not empty ?>
              <tr>
                <td align="left" valign="top"><img src="img/constructeur.gif" alt="ontwerp" width="86" height="16" /></td>
                <td valign="top" class="small"><?php echo $row_projecten_rs['constructeur']; ?></td>
              </tr>
              <?php } // Show if recordset not empty ?>
              <?php if ($row_projecten_rs[hoofdaannemer] > '0') { // Show if recordset not empty ?>
              <tr>
                <td align="left" valign="top"><img src="img/hoofdaannemer.gif" alt="hoofdaannemer" width="86" height="16" /></td>
                <td valign="top" class="small"><?php echo $row_projecten_rs['hoofdaannemer']; ?></td>
              </tr>
              <?php } // Show if recordset not empty ?>
              <?php if ($row_projecten_rs[ontwerp] > '0') { // Show if recordset not empty ?>
              <tr>
                <td align="left" valign="top"><img src="img/ontwerp.gif" alt="ontwerp" width="86" height="16" /></td>
                <td valign="top" class="small"><?php echo $row_projecten_rs['ontwerp']; ?></td>
              </tr>
              <?php } // Show if recordset not empty ?>
              <?php if ($row_projecten_rs[uitvoering] > '0') { // Show if recordset not empty ?>
              <tr>
                <td align="left" valign="top"><img src="img/uitvoering.gif" alt="uitvoering" width="86" height="16" /></td>
                <td valign="top" class="small"><?php echo $row_projecten_rs['uitvoering']; ?></td>
              </tr>
              <?php } // Show if recordset not empty ?>
              <?php if ($row_projecten_rs[bruto_vloeropp] > '0') { // Show if recordset not empty ?>
              <tr>
                <td align="left" valign="top"><img src="img/bruto_vloer.gif" alt="bruto vloeroppervlak" width="86" height="16" /></td>
                <td valign="top" class="small"><?php echo $row_projecten_rs['bruto_vloeropp']; ?></td>
              </tr>
              <?php } // Show if recordset not empty ?>
              <?php if ($row_projecten_rs[bouwkosten] > '0') { // Show if recordset not empty ?>
              <tr>
                <td align="left" valign="top"><img src="img/bouwkosten.gif" alt="bouwkosten" width="86" height="16" /></td>
                <td valign="top" class="small"><?php echo $row_projecten_rs['bouwkosten']; ?></td>
              </tr>
              <?php } // Show if recordset not empty ?>
              <?php if ($row_projecten_rs[installaties] > '0') { // Show if recordset not empty ?>
              <tr>
                <td align="left" valign="top"><img src="img/installaties.gif" alt="bouwkosten" width="86" height="16" /></td>
                <td valign="top" class="small"><?php echo $row_projecten_rs['installaties']; ?></td>
              </tr>
              <?php } // Show if recordset not empty ?>
            </table></td>
        </tr>
      </table>
</td>
  </tr>
</table>
       
       
    </div>
  View user's profile Private Nachricht senden
Ähnliche Themen Höhe aus Tabelle auslesen und in andere Tabelle einfügen
div-Höhe 100% wird bei scrollen nicht angezeigt
Tabelle Höhe 100%
[Dreamweaver MX] Tabelle 100% Höhe
Scrollen innerhalb einer Tabelle
scrollen innerhalb einer Tabelle
Neues Thema eröffnen   Neue Antwort erstellen
MGi Foren-Übersicht -> Allgemeines - Nonprint


Du kannst keine Beiträge in dieses Forum schreiben.
Du kannst auf Beiträge in diesem Forum nicht antworten.
Du kannst an Umfragen in diesem Forum nicht mitmachen.