Vikas Pareek
Vikas Pareek

Reputation: 102

Bootstrap table border not showing properly in firefox

Bootstrap table border not showing properly in Firefox. I have created a table in project but it's not showing properly in Firefox. But Chrome is fine.

enter image description here

#product-attribute-specs-table th {border-bottom: medium none;border-radius: 0;border-right: medium none;box-shadow: none;color: #333333;display: block;font-size: 100%;font-weight: 600;line-height: 1.42857;text-align: left;    }
 <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<table id="product-attribute-specs-table" class="data-table table table-striped">
  <tbody>
    <tr even="">
      <th class="label ">Test 1</th>
      <td class="data">Test 2</td>
    </tr>
    <tr odd="">
      <th class="label ">Test 1</th>
      <td class="data">Test 2</td>
    </tr>
    <tr even="">
      <th class="label ">Test 1</th>
      <td class="data">Test 2</td>
    </tr>
    <tr odd="">
      <th class="label ">Test 1</th>
      <td class="data">Test 2</td>
    </tr>
    <tr even="">
      <th class="label ">Test 1</th>
      <td class="data">Test 2</td>
    </tr>
    <tr odd="">
      <th class="label ">Test 1</th>
      <td class="data">Test 2</td>
    </tr>
    <tr even="">
      <th class="label ">Test 1</th>
      <td class="data">Test 2</td>
    </tr>
    <tr odd="">
      <th class="label ">Test 1</th>
      <td class="data">Test 2</td>
    </tr>
    <tr even="">
      <th class="label ">Test 1</th>
      <td class="data">Test 2</td>
    </tr>
    <tr odd="">
      <th class="label ">Test 1</th>
      <td class="data">Test 2</td>
    </tr>
    <tr even="">
      <th class="label ">Test 1</th>
      <td class="data">Test 2</td>
    </tr>
    <tr odd="">
      <th class="label ">Test 1</th>
      <td class="data">Test 2</td>
    </tr>
    <tr even="">
      <th class="label ">Test 1</th>
      <td class="data">Test 2</td>
    </tr>
    <tr odd="">
      <th class="label ">Test 1</th>
      <td class="data">Test 2</td>
    </tr>
    <tr even="">
      <th class="label ">Test 1</th>
      <td class="data">Test 2</td>
    </tr>
  </tbody>
</table>

Upvotes: 0

Views: 1862

Answers (1)

Jyoti Pathania
Jyoti Pathania

Reputation: 4989

Change display: block to display: table-cell.

CSS:

#product-attribute-specs-table th {
  border-bottom: medium none;
  border-radius: 0;
  border-right: medium none;
  box-shadow: none;
  color: #333333;
  display: table-cell;
  font-size: 100%;
  font-weight: 600;
  line-height: 1.42857;
  text-align: left;
}

I hope this helps you.

Enjoy :)

Upvotes: 1

Related Questions