Having the following code snippet, when the window is made smaller, the width is smaller, the text is breaking into multiple lines.
The problem is that it shouldn't get under the icons, it should start from the same position as the above text.
.my-style {
padding: 0;
list-style-type: none;
display: table;
}
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" />
<div>
<ul class="my-style">
<li><i class="far fa-check hacker-green tickbox"></i> This is a very very long text that breaks into multiple lines sometimes</li>
<li><i class="far fa-check hacker-green tickbox"></i> This should do the same thing as the above text of course</li>
<li><i class="far fa-check hacker-green tickbox"></i> Argentina is the current world champion at footbal thanks to Messi</li>
<li><i class="far fa-check hacker-green tickbox"></i> What else should we say about this great accomplishment? Nothing more is needed</li>
</ul>
</div>
It seems that display: table
or display: table-cell
doesn't work