Visualizzazione dei risultati da 1 a 2 su 2
  1. #1
    Utente di HTML.it L'avatar di Webmast
    Registrato dal
    Nov 2002
    Messaggi
    117

    Height 100% di tabella non va

    Ciao ragazzi,

    il parametro height (=100%) di queste tabelle non funziona:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>Prova</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link href="style.css" rel="stylesheet" type="text/css">
    <style type="text/css">
    <!--
    body {
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    }
    -->
    </style></head>

    <body>
    <table width="800" height="100%" border="1" cellpadding="0" cellspacing="0" align="left">
    <tr>
    <td width="800" height="100%" valign="top">
    <table width="800" border="1" cellspacing="0" cellpadding="0" height="100%">
    <tr>
    <td colspan="2" height="0%" width="800">BOX 1</td>
    </tr>
    <tr>
    <td colspan="2" width="800" height="0%">Box 2</td>
    </tr>
    <tr>
    <td height="100%">Box 3</td>
    <td height="100%">Box 4</td>
    </tr>
    </table> </td>
    </tr>
    </table>
    </body>
    </html>
    Qual è il motivo secondo voi?

    Il codice è corretto.

    Grazie

    Ciao
    Webmast

  2. #2
    Amministratore L'avatar di Vincent.Zeno
    Registrato dal
    May 2003
    residenza
    Emilia-Romagna (tortellini und cappelletti land!)
    Messaggi
    20,812
    funge... funge...

    ma, secondo la dichirazione DTD da te fatta,
    100% si intende in base al contenuto, non all'altezza della tabella "toutcour"

    domandina... che ci fai con una tabella dentro l'altra, non te ne basta una?

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.