1

Good morning!

I'm currently designing a website with bootstrap. I used the table-responsive to create a table. I customised the table but i can't remove the gray underline?

<div class="table-responsive">
  <table class="table">
   <thead>
    <tr>
      <th>Track Name</th>
      <th>Requested</th>
      <th>Status</th>
    </tr>
   </thead>
   <tbody>
    <tr>
      <td><p>Remotion (Original Mix)</p><p><small><span class="grey_color">by</span> Ovaal</small></p></td>
      <td>1 day ago</td>
      <td><span class="label label-primary"><small>Waiting for Approval</small></span></td>
    </tr>
    <tr>
      <td><p>Remotion (Original Mix)</p><p><small><span class="grey_color">by</span> Ovaal</small></p></td>
      <td>1 day ago</td>
      <td><span class="label label-primary"><small>Waiting for Approval</small></span></td>
    </tr>
  </tbody>
  </table>
</div>

I tried adding margin-top to tbody as well as adding margin-bottom to thead. Nothing works.

Thanks a lot!

2
  • 1
    Will you be able to create a fiddle? Commented Oct 28, 2013 at 14:57
  • underline?? which underline? are you talking about borders? Commented Oct 28, 2013 at 14:59

2 Answers 2

3

You'll have to override the relevant rules in boostrap.css - e.g.

.table thead > tr > th, 
.table tbody > tr > th, 
.table tfoot > tr > th, 
.table thead > tr > td, 
.table tbody > tr > td, 
.table tfoot > tr > td {
    border: none; 
}

Example: http://jsfiddle.net/52VtD/403/

Sign up to request clarification or add additional context in comments.

Comments

0

Try

table tr{border: none;}

Cheers

1 Comment

That's not specific enough for it to override Bootstrap.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.