Prev Demo
Contextual Classes As Rows And Columns Of Table In Bootstrap
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet" /> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script> </head> <body> <<div class="container"> <h2>contextual classes</h2> <p>contextual classes are used to add the colors to the tables </p> <table class="table"> <thead> <tr> <th>S.NO</th> <th>Name</th> <th>Details</th> <th>contact</th> </tr> </thead> <tbody> <tr class="success"> <td>1</td> <td>dotnetfunda</td> <td>fundamentals of .NET</td> <td>support@dotnetfunda.com</td> </tr> <tr class="danger"> <td>2</td> <td>techfunda</td> <td>online tutorials</td> <td>techfunda@gmail.com</td> </tr> </tbody> </table> </div> </body> </html>
Note: We DO NOT save your trial code in our database.
Output