Bootstrap Responsive table Code
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Table Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h2>Responsive Table</h2>
<div class="responsive-table">
<table class="table">
<thead>
<tr class="info">
<th>Firstname</th>
<th>Lastname</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<tr class="success">
<td>Gaurav</td>
<td>yadav</td>
<td>gauravyadav10118@gmail.com</td>
</tr>
<tr class="danger">
<td>Praveen</td>
<td>Yadav</td>
<td>Praveenyadav@gmail.com</td>
</tr>
<tr class="info">
<td>Arun </td>
<td>Yadav</td>
<td>arunyadav@gmail.com</td>
</tr>
<tr class="success">
<td>Gaurav</td>
<td>yadav</td>
<td>gauravyadav10118@gmail.com</td>
</tr>
<tr class="danger">
<td>Praveen</td>
<td>Yadav</td>
<td>Praveenyadav@gmail.com</td>
</tr>
<tr class="info">
<td>Arun </td>
<td>Yadav</td>
<td>arunyadav@gmail.com</td>
</tr>
<tr class="success">
<td>Gaurav</td>
<td>yadav</td>
<td>gauravyadav10118@gmail.com</td>
</tr>
<tr class="danger">
<td>Praveen</td>
<td>Yadav</td>
<td>Praveenyadav@gmail.com</td>
</tr>
<tr class="info">
<td>Arun </td>
<td>Yadav</td>
<td>arunyadav@gmail.com</td>
</tr>
<tr class="success">
<td>Gaurav</td>
<td>yadav</td>
<td>gauravyadav10118@gmail.com</td>
</tr>
<tr class="danger">
<td>Praveen</td>
<td>Yadav</td>
<td>Praveenyadav@gmail.com</td>
</tr>
<tr class="info">
<td>Arun </td>
<td>Yadav</td>
<td>arunyadav@gmail.com</td>
</tr><tr class="success">
<td>Gaurav</td>
<td>yadav</td>
<td>gauravyadav10118@gmail.com</td>
</tr>
<tr class="danger">
<td>Praveen</td>
<td>Yadav</td>
<td>Praveenyadav@gmail.com</td>
</tr>
<tr class="info">
<td>Arun </td>
<td>Yadav</td>
<td>arunyadav@gmail.com</td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>
output:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Table Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h2>Responsive Table</h2>
<div class="responsive-table">
<table class="table">
<thead>
<tr class="info">
<th>Firstname</th>
<th>Lastname</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<tr class="success">
<td>Gaurav</td>
<td>yadav</td>
<td>gauravyadav10118@gmail.com</td>
</tr>
<tr class="danger">
<td>Praveen</td>
<td>Yadav</td>
<td>Praveenyadav@gmail.com</td>
</tr>
<tr class="info">
<td>Arun </td>
<td>Yadav</td>
<td>arunyadav@gmail.com</td>
</tr>
<tr class="success">
<td>Gaurav</td>
<td>yadav</td>
<td>gauravyadav10118@gmail.com</td>
</tr>
<tr class="danger">
<td>Praveen</td>
<td>Yadav</td>
<td>Praveenyadav@gmail.com</td>
</tr>
<tr class="info">
<td>Arun </td>
<td>Yadav</td>
<td>arunyadav@gmail.com</td>
</tr>
<tr class="success">
<td>Gaurav</td>
<td>yadav</td>
<td>gauravyadav10118@gmail.com</td>
</tr>
<tr class="danger">
<td>Praveen</td>
<td>Yadav</td>
<td>Praveenyadav@gmail.com</td>
</tr>
<tr class="info">
<td>Arun </td>
<td>Yadav</td>
<td>arunyadav@gmail.com</td>
</tr>
<tr class="success">
<td>Gaurav</td>
<td>yadav</td>
<td>gauravyadav10118@gmail.com</td>
</tr>
<tr class="danger">
<td>Praveen</td>
<td>Yadav</td>
<td>Praveenyadav@gmail.com</td>
</tr>
<tr class="info">
<td>Arun </td>
<td>Yadav</td>
<td>arunyadav@gmail.com</td>
</tr><tr class="success">
<td>Gaurav</td>
<td>yadav</td>
<td>gauravyadav10118@gmail.com</td>
</tr>
<tr class="danger">
<td>Praveen</td>
<td>Yadav</td>
<td>Praveenyadav@gmail.com</td>
</tr>
<tr class="info">
<td>Arun </td>
<td>Yadav</td>
<td>arunyadav@gmail.com</td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>
output:
No comments:
Post a Comment
Thanks For Message . Keep in touch