I am working on a section with a grey row that will have both text and icons. Currently, my code looks like this:
{{ trans.dashboard.settings.car.Name| translate }} <i class="fas fa-caret-up"></i>
While this works, I want the text to be on the left side and the icon to be on the right side - with the text aligned to the left corner of the container and the icon aligned to the right corner. To achieve this, I tried using the following code:
i { margin-left: 95px; }
However, when I increase the margin-left value, the icon shifts below the text instead of remaining on the same line. How can I create more space between them while still keeping both elements on the same line?