Visualizzazione dei risultati da 1 a 2 su 2
  1. #1
    Utente di HTML.it
    Registrato dal
    Dec 2009
    Messaggi
    2

    Non riesco ad allineare il testo nella tabella

    Ho scritto il codice cosi. Ho descritto lo stile per ogni colona da alineare il testo. Dica dove ho sbagliato?!
    codice:
    <HTML>
    <head>
    <title>Nifty Corners: Javascript CSS rounded corners</title>
    <meta http-equiv="content-type" content="text/html; charset=koi-rus">
    <meta name="generator" content="HAPedit 3.1">
    <style type="text/css">
    body{padding: 20px;background-color: #BBD8FF; text-align: center;
          font: 76% Verdana,Arial,sans-serif, color:#FFF}
    table{width:100%; margin:0 auto; color:white}
    div{
        background:#377CB1;
    	margin-bottom: 20px}
    td.first{width:40%}
    td.second{width:60%} 
    td.innerfirst(
        width:50%;
    	font-weight: bold; 
        background:inherit;
    	text-align: center)
    td.innersecond(
        width:50%;
    	background:#FOFOE7;
        font: 75% Verdana,Arial,sans-serif;
    	color: #FFF;
    	padding: 2px;)
    td.innerthird(
        width:20%;
    	font: 75% Verdana,Arial,sans-serif;
    	color: #FFF;
    	padding: 2px;)
    td.innerforth(
        width:80%;
    	font: 75% Verdana,Arial,sans-serif;
    	color: #FFF;
    	padding: 2px;)
    Supplier{
        font: 100% Verdana,Arial,sans-serif;
    	font-style: italic;
    	font-weight: bold;
    	font-color: #FFF;}	
    	
    </style>
    </head>
    <body> 
    <TABLE>
    <TR>
    <TD class="first"> 
         <DIV ID="SupplData">
           <TABLE>
             <TR>
               <TD class="innerfirst"><span class="supplier">Сипа-Украина ООО</span></TD>
               <TD class="innersecond">Зип Procomac</TD>
             </TR>
           </TABLE>	
         </DIV>
    </TD>
    <TD class="second">
         <DIV ID="newsmain">
           <TABLE>
             <TR>
               <TD class="innerthird">12.01.09</TD>
               <TD class="innerforth">Получил заявку</TD>
             </TR>
           </TABLE>	
         </DIV>
    </TD>
    </TR>
    
    <TR>
    <TD class="first"></TD>
    <TD class="second">
         <DIV ID="newsother">
           <TABLE>
             <TR>
               <TD class="innerthird">15.01.09</TD>
               <TD class="innerforth">Отправил запрос в Сипа-Украина Петренко Владимиру</TD>
             </TR>
           </TABLE>	
         </DIV>
    </TD>
    </TR>
    </TR>
    </TABLE>
    </body>
    </HTML>

  2. #2
    Utente di HTML.it
    Registrato dal
    Dec 2009
    Messaggi
    2
    Ho tovato lo sbaglio ho indicato parentesi cosi () invece di {} .

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.