Inside a span
block, there is an icon:
<span><i></i>Text</span>
The CSS for the icon is as follows:
i {
display: inline-block;
width: 20px;
height: 20px;
}
When the text inside the span is long, it wraps to the next line under the icon i
.
How can we wrap the text with a margin-left equal to the width of the icon?
Currently, the layout looks like this:
Icon - Text he
re
However, we need it to look like this:
Icon - Text he
re