Joomla.it Forum

Non solo Joomla... => Sviluppo => : xinyiman 12 Jul 2015, 15:09:54

: larghezza tabella
: xinyiman 12 Jul 2015, 15:09:54
Ciao ragazzi, ho il seguente problema. Devo creare una tabella per presentare alcuni dati, solo che quando la visualizza va oltre il bordo e non vedo tutte le colonne. Qual'è il problema? con lo style settato non dovrebbe essere contenuto in dimensioni?

Grazie

:
                $msg = "
                <div class='clearfix'>
                <table class='table pricing' style='width:400px;overflow:auto'>
                <thead>
                <tr>
                <th class='tbl-header'>ID</th>
                <th class='tbl-header'>Fonte</th>
                <th class='tbl-header'>Battistrada</th>
                <th class='tbl-header'>Serie</th>
                <th class='tbl-header'>Diametro</th>
                <th class='tbl-header'>Carico</th>
                <th class='tbl-header'>Velocita</th>
                <th class='tbl-header'>Scultura</th>           
                <th class='tbl-header'>Stagione</th>
                <th class='tbl-header'>Produttore</th>
                </tr>
                </thead>
                <tbody>
                ";

                foreach($query_pag_data as $row) {
                    $msg .= "<tr>";
                    $msg .= "<td class='item'>" . htmlentities($row['Id']) . "</td>";
                    $msg .= "<td class='item'>" . htmlentities($row['Fonte']) . "</td>";
                    $msg .= "<td class='item'>" . htmlentities($row['Batt_Desc']) . "</td>";
                    $msg .= "<td class='item'>" . htmlentities($row['Serie_Desc']) . "</td>";
                    $msg .= "<td class='item'>" . htmlentities($row['Diametro_Desc']) . "</td>";
                    $msg .= "<td class='item'>" . htmlentities($row['Carico_Desc']) . "</td>";
                    $msg .= "<td class='item'>" . htmlentities($row['Velocita_Desc']) . "</td>";
                    $msg .= "<td class='item'>" . htmlentities($row['Scultura_Desc']) . "</td>";
                    $msg .= "<td class='item'>" . htmlentities($row['Stagione_Desc']) . "</td>";
                    $msg .= "<td class='item'>" . htmlentities($row['Produttore_Desc']) . "</td>";
                    $msg .= "</tr>";
                }
                $msg .= "</tbody>
                    </table>
                    </div>
                    ";
                //-----------