I have an unordered list in a table but the text that is displayed is not in line. Theres a gap between the bullet point and the text for the first line but the second line has no gap, how do I fix this?
td{
padding: 5px;
text-align: left;
font-size: 15px;
color: white;
width: 30px;
}
.ul{
list-style:disc inside;
}
<table>
<tr>
<th>HTTP</th>
<th>TCP/IP</th>
<th>FTP</th>
</tr>
<tr>
<td><ul class="ul"><li>Used in the WWW to search</li><li>Defines how messages are formatted and transmitted</li><li>States what actions web servers
and browsers should take in response to various commands</li></ul></td>
<td><ul class="ul"><li>Required in every computer to communicate</li><li>Defines address of a computer on the internet.</li><li>Defines how two computers on the
internet exchange data</li></ul></td>
<td><ul class="ul"><li>Used for file transfer</li><li>Allows the upload and download of files to and from other computers on a network.</li><li>Files can be locked with a password for security</li></ul></td>
</tr>
</table>
table{
border-spacing: 5px;
margin-bottom: 20px;
margin-left: 20px;
margin-right: 20px;
width: 92.35%;
}
table, th, td{
border: 1px solid white;
border-collapse: collapse;
}
th{
padding: 5px;
text-align: center;
font-size: 15px;
color: white;
max-width: 30%;
}
td{
padding: 5px;
text-align: left;
font-size: 15px;
color: white;
width: 30px;
}
.ul{
list-style:disc inside;
}
<table>
<tr>
<th>HTTP</th>
<th>TCP/IP</th>
<th>FTP</th>
</tr>
<tr>
<td><ul class="ul"><li>Used in the WWW to search</li><li>Defines how messages are formatted and transmitted</li><li>States what actions web servers
and browsers should take in response to various commands</li></ul></td>
<td><ul class="ul"><li>Required in every computer to communicate</li><li>Defines address of a computer on the internet.</li><li>Defines how two computers on the
internet exchange data</li></ul></td>
<td><ul class="ul"><li>Used for file transfer</li><li>Allows the upload and download of files to and from other computers on a network.</li><li>Files can be locked with a password for security</li></ul></td>
</tr>
</table>