Encountered a peculiar problem:
Within my .cshtml file, there is another element:
<ul>
<li>Test</li>
<li>Test2
<ul>
<li>Test3</li>
</ul>
</li>
<li>Test4
<ul>
<li>Test5</li>
</ul>
<ul>
<li>Test6</li>
</ul>
</li>
</ul>
It is supposed to display like this:
Test
Test2
Test3
Test4
Test5
Test6
However, it actually looks like this:
Test
Test2
Test3
Test4
Test5
Test6
The only styling applied in css is list-style: none;
.
The main <ul>
is contained within a <div>
with text-align: left;
(removing this centers all items).
I am new to css, so I can't figure out what is missing.
UPDATE: I forgot to mention that this displays correctly in jsfiddle.