Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   [HTML] Tabelle: valign (https://www.delphipraxis.net/16674-%5Bhtml%5D-tabelle-valign.html)

Meflin 21. Feb 2004 15:15


[HTML] Tabelle: valign
 
Hi, warum wird bei folgendem code die innere tabelle (zumindest im IE) trotzdem oben angezeigt, nicht wie angegeben in der mitte der tabelle?
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
   margin-left: 0px;
   margin-top: 0px;
   margin-right: 0px;
   margin-bottom: 0px;
}
-->
</style></head>

<body>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center" valign="middle"><table width="650" height="300" border="1" cellpadding="0" cellspacing="0">
      <tr>
        <td></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
das valign=middle sollte das doch eigentlich bewirken?!
edit: problem gefunden: warum ist die äußere tabelle trotz height=100% keine 100% hoch?

d3g 21. Feb 2004 15:37

Re: [HTML] Tabelle: valign
 
Zitat:

Zitat von Meflin
edit: problem gefunden: warum ist die äußere tabelle trotz height=100% keine 100% hoch?

Weil es das Attribut nicht gibt. Lass deinen Code immer durch den Validator laufen, der sagt dir sowas.

Meflin 21. Feb 2004 15:41

Re: [HTML] Tabelle: valign
 
aber wie könnte man das ganze dann realisieren? eine tabelle mit fester größe, die egal bei welcher auflösung immer in der mitte des screens angezeigt wird?

moritz 21. Feb 2004 15:41

Re: [HTML] Tabelle: valign
 
Versuch es mal so:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
   margin-left: 0px;
   margin-top: 0px;
   margin-right: 0px;
   margin-bottom: 0px;
}
-->
</style></head>

<body>
<table style="height: 100%; width: 100%; border: none;" cellpadding="0" cellspacing="0">
  <tr style="height: 100%; width: 100%;">
    <td style="height: 100%; width: 100%;vertical-align: middle; text-align: center"><table width="650" height="300" border="1" cellpadding="0" cellspacing="0">
      <tr>
        <td></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
Gruß, Onz

Meflin 21. Feb 2004 15:42

Re: [HTML] Tabelle: valign
 
gleiches problem

moritz 21. Feb 2004 15:48

Re: [HTML] Tabelle: valign
 
Schau dir mal onz24.de/geistesblitz an. Da geht das.

Gruß

P.S. Gib mal die URL

Meflin 21. Feb 2004 15:52

Re: [HTML] Tabelle: valign
 
jetzt hab ichs: bei dir (onz24.de) steht das ganze im body, bei mir wars im table tag!

*MFG*

moritz 21. Feb 2004 15:53

Re: [HTML] Tabelle: valign
 
Gut, dann geht ja nun alles :)


Alle Zeitangaben in WEZ +1. Es ist jetzt 21:52 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz