html - Boostrap CSS - Change Table Border Colors -


how can change column borders in html table using bootstrap css?

this have gone far:

boostrap pre-defined table

enter image description here

the table lays inside jumbotron , change table borders , lines can more distinguishable. have gone far.

enter image description here

as can see, table lines between columns remain same. how can changed?

any other suggestions on improving table appearance gratefully accepted

table.html

<!doctype html> <html> <head>     <meta charset="utf-8"/>     <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">     <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>     <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> </head>  <body> <div class="container">     <div class="jumbotron">         <h2>employees</h2>         <div class="row">             <div class="col-md-12">                 <div class="pull-right">                     <button class="btn btn-primary" data-toggle="modal" data-target="#add_new_record_modal">add new record</button>                 </div>             </div>         </div>         <br>         <table class="table table-bordered">             <thead>             <tr>                 <th>firstname</th>                 <th>lastname</th>                 <th>email</th>             </tr>             </thead>             <tbody>             <tr>                 <td>john</td>                 <td>doe</td>                 <td>john@example.com</td>             </tr>             <tr>                 <td>mary</td>                 <td>moe</td>                 <td>mary@example.com</td>             </tr>             <tr>                 <td>july</td>                 <td>dooley</td>                 <td>july@example.com</td>             </tr>             </tbody>         </table>     </div> </div>  </body> 

table.css

.jumbotron{     margin-top:250px }  tr {     border: 3px solid gray; } 

code in jsfiddle.

try this

.jumbotron .table-bordered tbody tr {    border: 3px solid gray;  }    .jumbotron .table-bordered tbody tr td {    border: 3px solid gray;  }    .jumbotron .table-bordered tbody tr {    border: 3px solid gray;  }    .jumbotron .table-bordered thead tr {    border: 3px solid gray;  }    .jumbotron .table-bordered thead tr th {    border: 3px solid gray;  }
<!doctype html>  <html>    <head>    <meta charset="utf-8" />    <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">    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>  </head>    <body>    <div class="container">      <div class="jumbotron">        <h2>employees</h2>        <div class="row">          <div class="col-md-12">            <div class="pull-right">              <button class="btn btn-primary" data-toggle="modal" data-target="#add_new_record_modal">add new record</button>            </div>          </div>        </div>        <br>        <table class="table table-bordered">          <thead>            <tr>              <th>firstname</th>              <th>lastname</th>              <th>email</th>            </tr>          </thead>          <tbody>            <tr>              <td>john</td>              <td>doe</td>              <td>john@example.com</td>            </tr>            <tr>              <td>mary</td>              <td>moe</td>              <td>mary@example.com</td>            </tr>            <tr>              <td>july</td>              <td>dooley</td>              <td>july@example.com</td>            </tr>          </tbody>        </table>      </div>    </div>    </body>


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -