Visualizzazione dei risultati da 1 a 2 su 2
  1. #1

    div al posto di tabelle

    Salve, vorrei sapere come poter realizzare senza tabelle l'effetto prodotto dal seguente codice

    ------------------------------------------------------------------------------------
    <table width="100%" border="0" cellspacing="0" cellpadding="0" height="93">
    <tr>
    <td width="33%" height="93"><div align="center">Registrazione

    </div></td>
    <td width="33%" height="93"><div align="center">Login

    </div></td>
    <td width="34%" height="93"><div align="center">Directory

    </div></td>
    </tr>
    </table>
    ------------------------------------------------------------------------------------
    grazie!

  2. #2
    Utente di HTML.it L'avatar di Francis87
    Registrato dal
    Jun 2003
    Messaggi
    5,970
    CSS
    codice:
    div#main {
     width: 100%;
     height: 93px;
     padding: 0px;
    }
    div.cell {
     float: left;
     width: 33%;
     height: 93px;
     text-align: center;
     font-weight: bold;
    }
    div.cell img {
     margin-left: auto;
     margin-right: auto;
     border: 0px;
     width: 57px;
     height: 57px;
    }
    XHTML
    codice:
    <div id="main">
     <div class="cell"><span>Registrazione</span>
    </div>
     <div class="cell"><span>Login</span>
    </div>
     <div class="cell"><span>Directory</span>
    </div>
     <div style="clear: both;"></div>
    </div>
    Heaven's closed. Hell sold out.

    Linux 2.6.26-2-amd64
    Debian squeeze

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.