Tabell - skjul kolonne

Skjule en kollone dersom vinduet er smalt

<!DOCTYPE html>
<html >
<head>
  <meta charset="UTF-8">
  <title>Tabell - skjul kolonne</title>
  
  
  
      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>
  <table>
  <tr>
    <td>En</td><td>To</td><td>Tre</td>
  </tr>
  <tr>
    <td>En</td><td>To</td><td>Tre</td>
  </tr>
</table>
  
  
</body>
</html>
/* Downloaded from https://www.codeseek.co/ */
table {border-collapse: collapse; width: 100%}
td {border: 1px solid #666; font-size: 200%}
@media (max-width: 400px){
  td:nth-child(2) {display:none}  
}
/* Downloaded from https://www.codeseek.co/ */

This awesome code ( Tabell - skjul kolonne ) is write by Morten Bergset, you can se more from this user in the personal repository

You can find the original code on Codepen.io

2018 © Morten Bergset