I have the following html-Code
<div class="magicbullets">
Nice
awesome
cool
</div>
I need it to behave like
<div class="magicbullets">
<ul>
<li>nice</li>
<li>aweseome</li>
<li>cool</li>
</ul>
</div>
I could wrap the <ul></ul>
around the content, but I cannot modify the content itself by line (nice,awesome,cool). I only have to option to use CSS to achieve what I want.
I managed to create the required new-Line
.magicbullets {
white-space: pre-line;
}
for each entry, but list-style-type
does not really work without a list.
To sum up This is what it should look like:
- nice
- awesome
- cool
Is this doable using pure CSS or is some kind of clientcode(JS, jQuery) or servercode(PHP) needed?