In the following example, I would like elements 2 and 3 to be displayed side by side, and the rest remain as an unordered list. How to do this in css?
<li><i class="icon-caret-right"></i>textone</li> <li><i class="icon-caret-right"></i>texttwo</li> <li><i class="icon-caret-right"></i>textthree</li> <li><i class="icon-caret-right"></i>textfour</li>
this code is shown below.
textone texttwo textthree textfour
But I want to show it like this picture below. How to do it in CSS?
source share