0

I have a table in an MVC 5 view which I would like to reduce the space above and below the text. Below is a picture of a part of the heading:

enter image description here

Below is the HTML I have used to try reducing the space by using negative numbers for the padding but it is not working:

<table class="table  table-hover">
    <thead class="thead-dark">
        <tr style="padding-top:-4px; padding-bottom:-4px;">
            <th scope="col">
                @Html.DisplayNameFor(model => model.ItemNumber)
            </th>
            <th scope="col">
                @Html.DisplayNameFor(model => model.VendorProductId)
            </th>
        </tr>
    </thead>
</table>

Is there a way to reduce some of the space above and below the text for the heading I have? Thanks in advance.

Archer
  • 830
  • 9
  • 28
Robertcode
  • 781
  • 7
  • 21

0 Answers0