I have an HTML <table> with many columns, so when my web page is displayed on a mobile browser, it's too small. So I'm creating a media query and I want to remove some columns (That are not important).
So how to remove an html column using only css ?
For example, how to remove the column "B" in the middle of the table on the next example :
table, th, td, tr{
border:1px solid black;
}
table{
width:100%;
}
<table>
<th>A</th>
<th>B</th>
<th>C</th>
<tr>
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
</table>
Aucun commentaire:
Enregistrer un commentaire