Code:
<div >
<div data-toggle="collapse" data-target="#collapseOrderItems1"> Products 1 <i ></i></div>
<div id="collapseOrderItems1">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</div>
<div data-toggle="collapse" data-target="#collapseOrderItems2"> Products 2 <i ></i></div>
<div id="collapseOrderItems2">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</div>
</div>
.panel-heading .chevron:after {
content: "\f078";
}
.panel-heading.collapsed .chevron:after {
content: "\f054";
}
Codepen: https://codepen.io/anon/pen/PPxOJX
I'm not sure if it's possible. I'm only able to move the whole entire chunk around. I'm having trouble just moving the collapsible icon.
CodePudding user response:
You can update your HTML code to place your icon before the text :
<div data-toggle="collapse" data-target="#collapseOrderItems1"> <i ></i> Products 1 </div>