Visualizzazione dei risultati da 1 a 5 su 5
  1. #1
    Utente di HTML.it
    Registrato dal
    Aug 2005
    Messaggi
    3

    decentrated layout in firefox

    hi, i have a problem with table layout.

    this is my html:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
    <HTML>
    <HEAD>
    <LINK href="Styles.css" type="text/css" rel="stylesheet" />
    </HEAD>
    <body>
    <form id="frmForm">
    <table class="tabellaLayout">
    <tr class="header">
    <td colSpan="3">Header</td>
    </tr>
    <tr class="primaFascia">
    <td class="cellaNavigatore">Navigator</td>
    <td class="cellaContenuti" rowSpan="2">Content</td>
    </tr>
    <tr class="secondaFascia">
    <td class="cellaMeteo">Weather</td>
    </tr>
    <tr class="footer">
    <td colSpan="3">Footer</td>
    </tr>
    </table>
    </form>
    </body>
    </HTML>

    and this is my css:

    html,body
    {
    padding:0px;
    margin:0px;
    }
    td
    {
    border-width: 1px;
    border-style: solid;
    border-color:Black;
    }

    .tabellaLayout
    {
    width: 800px;
    height: 600px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top:-300px;
    margin-left:-400px;
    margin-right:0px;
    margin-bottom:0px;
    }

    .header
    {
    height: 20%;
    }

    .primaFascia
    {
    height: 50%;
    }

    .secondaFascia
    {
    height: 25%;
    }

    .footer
    {
    height: auto;
    }

    .cellaNavigatore
    {
    width: 20%;
    }

    .cellaMeteo
    {
    width: 20%;
    }

    .cellaContenuti
    {
    width: 80%;
    padding-left: 30px;
    padding-top: 10px;
    line-height: 15px;
    vertical-align:top;
    }

    the problem is that in FireFox the layout appears decentrated...Someone could help me?

  2. #2
    Utente di HTML.it
    Registrato dal
    Aug 2005
    Messaggi
    107
    codice:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
    <HTML>
    <HEAD>
    <style>
    html,body
    {
    padding:0px;
    margin:0px;
    }
    td
    {
    border-width: 1px;
    border-style: solid;
    border-color:Black;
    }
    
    .tabellaLayout
    {
    width: 780px;
    height: 600px;
    margin-right:0px;
    margin-bottom:0px;
    }
    
    .header
    {
    height: 20%;
    }
    
    .primaFascia
    {
    height: 50%;
    }
    
    .secondaFascia
    {
    height: 25%;
    }
    
    .footer
    {
    height: auto;
    }
    
    .cellaNavigatore
    {
    width: 20%;
    }
    
    .cellaMeteo
    {
    width: 20%;
    }
    
    .cellaContenuti
    {
    width: 80%;
    padding-left: 30px;
    padding-top: 10px;
    line-height: 15px;
    vertical-align:top;
    }
    </style>
    </HEAD>
    <body>
    <form id="frmForm">
    <table class="tabellaLayout">
    <tr class="header">
    <td colSpan="3">Header</td>
    </tr>
    <tr class="primaFascia">
    <td class="cellaNavigatore">Navigator</td>
    <td class="cellaContenuti" rowSpan="2">Content</td>
    </tr>
    <tr class="secondaFascia">
    <td class="cellaMeteo">Weather</td>
    </tr>
    <tr class="footer">
    <td colSpan="3">Footer</td>
    </tr>
    </table>
    </form>
    </body>
    </html>

  3. #3
    Utente di HTML.it
    Registrato dal
    Aug 2005
    Messaggi
    3
    tnx for replying, but my layout must be centered in the page. with your modification it appears shifted to the left. it's not my intention. how can i do?

  4. #4
    Utente di HTML.it
    Registrato dal
    Aug 2005
    Messaggi
    107
    Try now..

    codice:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
    <HTML>
    <HEAD>
    <style>
    html,body
    {
    text-align: center; /* alinea il box con IE */
    padding:0px;
    margin:0px;
    }
    td
    {
    border-width: 1px;
    border-style: solid;
    border-color:Black;
    }
    
    .tabellaLayout
    {
    width: 780px;
    height: 600px;
    margin-right:0px;
    margin-bottom:0px;
    margin: auto; /* alinea il box con i browser in modalità standard */
    }
    
    .header
    {
    height: 20%;
    }
    
    .primaFascia
    {
    height: 50%;
    }
    
    .secondaFascia
    {
    height: 25%;
    }
    
    .footer
    {
    height: auto;
    }
    
    .cellaNavigatore
    {
    width: 20%;
    }
    
    .cellaMeteo
    {
    width: 20%;
    }
    
    .cellaContenuti
    {
    width: 80%;
    padding-left: 30px;
    padding-top: 10px;
    line-height: 15px;
    vertical-align:top;
    }
    </style>
    </HEAD>
    <body>
    <form id="frmForm">
    <table class="tabellaLayout">
    <tr class="header">
    <td colSpan="3">Header</td>
    </tr>
    <tr class="primaFascia">
    <td class="cellaNavigatore">Navigator</td>
    <td class="cellaContenuti" rowSpan="2">Content</td>
    </tr>
    <tr class="secondaFascia">
    <td class="cellaMeteo">Weather</td>
    </tr>
    <tr class="footer">
    <td colSpan="3">Footer</td>
    </tr>
    </table>
    </form>
    </body>
    </HTML>

  5. #5
    Utente di HTML.it
    Registrato dal
    Aug 2005
    Messaggi
    3
    ok, it's simply perfect!!!!! thank you!!!

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 © 2025 vBulletin Solutions, Inc. All rights reserved.