I am facing an issue where multiple li-a tags with varying text sizes are squished into one line. I want them to be displayed on separate lines, regardless of the length of the text. How can I achieve this?
<ul>
<li><a>AAAA </a></li>
<li><a>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB </a></li>
<li><a>CCCCCCCCCCCCCCCCCCCCCCC</a></li>
<li><a>DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD</a></li>
</ul>
Desired Display:
AAAA
BBBBBBBBBBBBBBBBBBBBBBB
CCCCCCCCCCCCCCC
DDDDDDDDDDDDDDDDDDDD
Current Display:
AAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
BBBBCCCCCCCCCCCCCCCCCCCCCCCCCDDDDDDDDDDDDDDD
CSS
ul li a{
line-height: 45px;
border: 1px solid #ff0000;
margin-left:10px
}