Define responsive table size

0

I'm creating a responsive table, but when I'm on a big screen, the table gets smaller than I should have, I tried to add a max-width to it in css , but it does not stay the same proposed.

         <table bordered striped centered highlight responsive-table style="max-width: 500px;">
            <thead>
                <tr>
                    <th>Código</th>
                    <th>Descrição</th>
                    <th>Categoria</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>001</td>
                    <td>Notebook i7 8GB Branco</td>
                    <td>Informática</td>
                </tr>
                <tr>
                    <td>002</td>
                    <td>Caneta Esferográfica Azul</td>
                    <td>Papelaria</td>
                </tr>
            </tbody>
        </table>  
    
asked by anonymous 29.11.2018 / 11:20

1 answer

1

The syntax is wrong. You have declared class .

<table class="bordered striped centered highlight responsive-table" style="width: 90%; max-width: 500px;">
    
29.11.2018 / 11:26