Einzelnen Beitrag anzeigen

Benutzerbild von engel90
engel90

Registriert seit: 15. Jan 2007
Ort: Jena
38 Beiträge
 
Delphi 7 Personal
 
#1

HTML - Tabellenausrichtung mit CSS

  Alt 24. Apr 2007, 17:43
Hallo
ich habe folgendes Problem:

Nun habe ich jedoch folgendes Problem: Unter Mozilla Firefox sind die Tabellen durch die CSS-Eigenschaft "margin: auto" mittig auf dem Bildschirm ausgerichtet, unter dem InternetExplorer jedoch nicht. Das HTML-Attribut "align" möchte ich nicht benutzen, da meine Website HTML4.01 Strict valid sein soll. Wie kann ich es nun einrichten, dass die Tabellen auch unter IE mittig angezigt werden?

Gruß
engel90

-----------------------------------------------------------------------------------------

Der Quellcode für meine Website: (Link)

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
 
  <title>Informatik Grundkurs</title>
 
  <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
 
  <meta name="author" content="Stefan Engelhardt">
</head>
<body style="background-color: #FFFFFF">




</p>

<table cellpadding="2" cellspacing="0" border="0" style="width: 50%; margin: auto">
  <tr align="right" valign="middle">
    <th><span style="font-size: 20px; color: #000000; font-family: Courier New">Delphi Projects - Informatik Grundkurs</span></th>
  </tr>
</table>

<table cellpadding="2" cellspacing="0" border="0" style="width: 50%; margin: auto">
  <tr style="height: 20px">
    <th> </th>
    <th style="width: 10px"> </th>
    <th></th>
    <th style="width: 10px"> </th>
    <th style="width: 50px" align="right"> </th>
  </tr>
 
  <tr style="height: 2px">
    <td style="background-color: #000000"> </td>
    <td style="width: 10px; background-color: #000000"> </td>
    <td style="background-color: #000000"> </td>
    <td style="width: 10px; background-color: #000000"> </td>
    <td style="width: 50px; background-color: #000000" align="right"> </td>
  </tr>
  <tr style="height: 5px">
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td align="right"> </td>
  </tr>
 
  <tr>
    <td><span style="font-size: 14px; color: #000000; font-family: Courier New">editor.zip</span></td>
    <td> </td>
    <td><span style="font-size: 14px; color: #000000">Einfacher Texteditor (Nach Vorbild des "Editors" von Micosoft)</span></td>
    <td> </td>
    <td align="right"><span style="font-size: 14px; color: #000000">[url="data/editor.zip"]766KB[/url]</span></td>
  </tr>
 
  <tr>
    <td><span style="font-size: 14px; color: #000000; font-family: Courier New">taschenrechner.zip</span></td>
    <td> </td>
    <td><span style="font-size: 14px; color: #000000">Einfacher Taschenrechner mit Standard-Funktionen</span></td>
    <td> </td>
    <td align="right"><span style="font-size: 14px; color: #000000">[url="data/taschenrechner.zip"]595KB[/url]</span></td>
  </tr>
 
  <tr>
    <td><span style="font-size: 14px; color: #000000; font-family: Courier New">wuerfelspiel.zip</span></td>
    <td> </td>
    <td><span style="font-size: 14px; color: #000000">Wuerfelspiel</span></td>
    <td> </td>
    <td align="right"><span style="font-size: 14px; color: #000000">[url="data/wuerfelspiel.zip"]486KB[/url]</span></td>
  </tr>
 
  <tr>
    <td><span style="font-size: 14px; color: #000000; font-family: Courier New">muster.zip</span></td>
    <td> </td>
    <td><span style="font-size: 14px; color: #000000">Programm zur Erstellung von Mustern aus einzelnen Zeichen (Uebung zur Anwendung Schleifen)</span></td>
    <td> </td>
    <td align="right"><span style="font-size: 14px; color: #000000">[url="data/muster.zip"]475KB[/url]</span></td>
  </tr>
 
  <tr>
    <td><span style="font-size: 14px; color: #000000; font-family: Courier New">messwerte.zip</span></td>
    <td> </td>
    <td><span style="font-size: 14px; color: #000000">Programm zur Auswertung von Messwerten (Durchschnitt, Realtiver Fehler, Absoluter Fehler)</span></td>
    <td> </td>
    <td align="right"><span style="font-size: 14px; color: #000000">[url="data/messwerte.zip"]435KB[/url]</span></td>
  </tr>
 
  <tr>
    <td><span style="font-size: 14px; color: #000000; font-family: Courier New">minigolf_v1.0.zip</span></td>
    <td> </td>
    <td><span style="font-size: 14px; color: #000000">Programm zur Auswertung von Minigolfturnieren</span></td>
    <td> </td>
    <td align="right"><span style="font-size: 14px; color: #000000">[url="data/minigolf_v1.0.zip"]528KB[/url]</span></td>
  </tr>
 
  <tr>
    <td><span style="font-size: 14px; color: #000000; font-family: Courier New">minigolf_v2.0.zip</span></td>
    <td> </td>
    <td><span style="font-size: 14px; color: #000000">Programm zur Auswertung von Minigolfturnieren mit der Möglichkeit die Turniere in XML-Dateien zu speichern/laden</span></td>
    <td> </td>
    <td align="right"><span style="font-size: 14px; color: #000000">[url="data/minigolf_v2.0.zip"]545KB[/url]</span></td>
  </tr>
 
  <tr>
    <td><span style="font-size: 14px; color: #000000; font-family: Courier New">xml.pas</span></td>
    <td> </td>
    <td><span style="font-size: 14px; color: #000000">Delphi-Unit mit Befehlen zum Lesen und Schreiben in XML Dateien</span></td>
    <td> </td>
    <td align="right"><span style="font-size: 14px; color: #000000">[url="data/xml.pas"]11KB[/url]</span></td>
  </tr>
 
  <tr>
    <td><span style="font-size: 14px; color: #000000; font-family: Courier New">compare.zip</span></td>
    <td> </td>
    <td><span style="font-size: 14px; color: #000000">Programm zum einfachen Vergleichen von 2 Bitmaps (Gibt die Anzahl der unterschiedlichen Pixel an, Bitmaps muessen die gleiche Groeße haben)</span></td>
    <td> </td>
    <td align="right"><span style="font-size: 14px; color: #000000">[url="data/compare.zip"]420KB[/url]</span></td>
  </tr>
 
  <tr>
    <td><span style="font-size: 14px; color: #000000; font-family: Courier New">data.zip</span></td>
    <td> </td>
    <td><span style="font-size: 14px; color: #000000">Programm zum erstellen von bis zu 2Mrd. zufaelliger Zahlen (z.B. Zum Testen der Geschwindigkeit von Sortieralgorithmen)</span></td>
    <td> </td>
    <td align="right"><span style="font-size: 14px; color: #000000">[url="data/data.zip"]425KB[/url]</span></td>
  </tr>
</table>


<table cellpadding="2" cellspacing="0" border="0" style="width: 50%; margin: auto">
  <tr align="right" valign="middle">
    <th><span style="font-size: 10px; color: #000000">Powerd by Stefan Engelhardt © 2007</span></th>
  </tr>
</table>




</p>



</p>


<table cellpadding="2" cellspacing="0" border="0" style="width: 50%; margin: auto">
  <tr align="center" valign="middle">
    <th>
      <span style="font-size: 10px">
        Der Autor dieses Programms haftet nicht für Schäden an Soft- oder Hardware


        oder Vermögensschäden, die durch das Benutzen des Programms entstehen, es


        sei denn diese beruhen auf einem grob fahrlässigen oder vorsätzlichen


        Handeln des Autors, seiner Erfüllungsgehilfen oder seiner gesetzlichen


        Vertreter.


        Für Schäden an der Gesundheit, dem Körper oder dem Leben des Nutzers haftet


        der Autor uneingeschränkt. Ebenso haftet er für die Verletzung von Pflichten,


        die zur Erreichung des Vertragszwecks von besonderer Bedeutung sind


        (Kardinalspflichten).


      </span>
    </th>
  </tr>
</table>

</body>
</html>
  Mit Zitat antworten Zitat