Visualizzazione dei risultati da 1 a 5 su 5

Discussione: problema con iFrame

  1. #1
    Utente di HTML.it
    Registrato dal
    May 2004
    Messaggi
    130

    problema con iFrame

    Salve ragazzi... ieri mi avete aiutato a creare un "iFrame" con i css e il tutto mi è riuscito come volevo
    ma non riesco a centrare la tabella! Non voglio usare un - leftmargin="px" - seno' mi scombusola le
    altre pagine del sito... vorrei solo centrarla! Ho gia provato a mettere la - table align="center" - ma nulla!! Dove sbaglio?

    Eccovi la pagina dove troverete la tabella da centrare!


    Pagina web

    Grazie tante a tutti coloro che mi rispondono

  2. #2
    Utente di HTML.it
    Registrato dal
    May 2004
    Messaggi
    130

    sono sempre io...

    ah, e questo è il codice:

    <html>
    <head>
    <title>Gialain Mostre</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

    <style type="text/css">
    <!--

    body {
    background-image: url(../imm/sfondo00026.gif);
    margin-top: 20px;
    }
    body,td,th {
    font-family: Times New Roman, Times, serif;
    font-weight: bold;
    }
    .Stile2 {width: 75%; height: 92%; overflow: auto; border: 2px solid #000; padding: 10px; font-family: "Times New Roman", Times, serif; }

    -->
    </style>
    </head>

    <body bgcolor="#FFFFFF" text="#000000">
    <div align="center" class="Stile2">

    <table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#666666">
    </tr>

    <tr>
    <td align="center" valign="top"><table width="100%" height="100%" border="0">

    </tr>
    <td height="30">- 17 Settembre 1972 Premiato
    <hr align="center" width="50%"></td>
    </tr>
    </table>

    </div>
    </body>

    </html>

  3. #3
    Vedi se va bene così:
    codice:
    <html>
    <head>
    <title>Gialain Mostre</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    
    <style type="text/css">
    <!--
    
    body {
    background-image: url(../imm/sfondo00026.gif);
    
    text-align:center;
    
    margin-top: 20px;
    }
    body,td,th {
    font-family: Times New Roman, Times, serif;
    font-weight: bold;
    }
    .Stile2 {width: 75%; height: 92%; overflow: auto; 
    border: 2px solid #000; 
    padding: 10px; 
    font-family: "Times New Roman", Times, serif; 
    
    margin:auto;  }
    
    -->
    </style>
    </head>
    
    <body bgcolor="#FFFFFF" text="#000000">
    <div align="center" class="Stile2">
    
    <table 
    width="100%" 
    height="100%" 
    border="0" 
    align="center" 
    cellpadding="0" 
    cellspacing="0" 
    bordercolor="#666666">
    </tr>
    
    <tr>
    <td align="center" valign="top"><table width="100%" height="100%" border="0">
    
    </tr>
    <td height="30">- 17 Settembre 1972 Premiato
    <hr align="center" width="50%"></td>
    </tr>
    </table>
    
    </div>
    </body>
    
    </html
    Colleziono problemi matematici divertenti o strani e li raccolgo nel mio sito. Se me ne mandate qualcuno vi ringrazio. flan

  4. #4
    Utente di HTML.it
    Registrato dal
    May 2004
    Messaggi
    130

    Si, però...

    Bè, ora è centrata proprio come volevo però non mi sta più a 20 px
    dal margine superiore come tutte le altre pagine del sito! come faccio?
    Mi visualizza la tabella come se fosse - topmargin="0" - !!

  5. #5
    prova ad aggiungere dopo
    margin:auto;
    anche
    margin-top: 20px;
    Colleziono problemi matematici divertenti o strani e li raccolgo nel mio sito. Se me ne mandate qualcuno vi ringrazio. flan

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.