1

I am working on a project to display the results from the database on the UI.So my project is based on file info extraction. So I am calculating MD5,SHA1,SHA256 and I want to display them in the common cell in html table. I have used this link Here and i have modified the table. So after this my table is not aligned properly.

Code here:

<tr>
    <td class="tg-yw4l">Help</td>
    <td class="tg-yw4l" style="white-space:pre-wrap ; word-wrap:break-word;">

    <? echo "$file_Hash" ?>
    <? echo "$file_SHA1" ?> 
    <? echo "$file_SHA256" ?>   

    </td>
    ........ Remaining code not included.

enter image description here

Is there any proper way to align these 3 lines in like a pyramid formation. So that md5 has less length that sha1 and sha256.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
SaiKiran
  • 6,244
  • 11
  • 43
  • 76

1 Answers1

3

adding the style text-align: center; to the td should do it.

kscherrer
  • 5,486
  • 2
  • 19
  • 59