I'm attempting to left-align a list of options within my div container.
Here is my current setup:
https://i.sstatic.net/tFp9q.png
HTML code:
<div id="categorylist">
<ul>
<li class="text-white">ALL <img src="images/all-
ico.png"></li>
<li class="text-white">COMMUNITY DEVELOPMENT <img
src="images/commdev-ico.png"></li>
<li class="text-white">SPORTS <img src="images/sports-ico.png"></li>
<li class="text-white">EDUCATION <img src="images/edu-ico.png"></li>
</ul>
</div>
CSS code:
#categorylist{
margin-left: auto;
margin-right: auto;
display: table;
}
#categorylist ul {
text-align: left;
}
The desired outcome is illustrated here: https://i.sstatic.net/E7fiQ.png
Please provide any assistance or recommendations. Thank you!