How to make the table more compact in Bootstrap

1 Answer

0 votes
<!DOCTYPE html>
<html lang="en">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet"
        href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
</head>
  
<body>
  
<div class="container">
  <table class="table table-condensed">
    <thead>
      <tr>
        <th>col1</th>
        <th>col2</th>
        <th>col3</th>
        <th>col4</th>
        <th>col5</th>
        <th>col6</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>abc</td>
        <td>xyz</td>
        <td>uvw</td>
        <td>hig</td>
        <td>www</td>
        <td>PHP</td>
      </tr>      
      <tr>
        <td>abc</td>
        <td>xyz</td>
        <td>uvw</td>
        <td>hig</td>
        <td>www</td>
        <td>PHP</td>
      </tr>
    </tbody>
  </table>
</div>
  
</body>
</html>

 



answered Jul 8, 2017 by avibootz

Related questions

1 answer 260 views
1 answer 240 views
1 answer 242 views
...