Larghezza dinamica ad elementi html

danielloantonio

Utente Attivo
20 Lug 2012
110
0
0
Salve,
ho questo codice:

<html>
<head>
<style>
.table {
width: 100%;
height: 35px;
background: black;
}
.td {
height: 35px;
padding-left: 15px;
padding-right: 15px;
width: ??????;
}
</style>
</head>
<body>
<table class="table">
<td cass="td">Elemento 1</td>
<td cass="td">Elemento 1</td>
<td cass="td">Elemento 1</td>
<td cass="td">Elemento 1</td>
<td cass="td">Elemento 1</td>
<td cass="td">Elemento 1</td>
<td cass="td">Elemento 1</td>
</table>
</body>
</html>

Ora vorrei che tutti i "td" della tabella si allargassero quanto piu possono per tutta la tabella ma avendo tutti la stessa larghezza padding compreso!

Come posso fare?

Grazie a tutti
 

Discussioni simili