The text should be next to the image. I just have the problem that the text below the list point is displayed, not right next to it. What is the problem here? I've looked at other examples that make it exactly the same. But in the examples it works however.
.icon {
list-style-type: none;
}
.icon li:nth-child(1):before {content: url(icon-1.png)' ';}
.icon li:nth-child(2):before {content: url(icon-2.png)' ';}
.icon li:nth-child(3):before {content: url(icon-3.png)' ';}
<ul class="icon">
<li>
<h3>Lorem ipsum</h3>
Lorem ipsum dolor sit amet, consetetur sadipscing elitr,</li>
<li>
<h3>Lorem ipsum</h3>
Lorem ipsum dolor sit amet, consetetur sadipscing elitr,</li>
<li>
<h3>Lorem ipsum</h3>
Lorem ipsum dolor sit amet, consetetur sadipscing elitr,</li>
</ul>