Margin-right property not working for Landing product page

I want my icons to the right of my texts as shown here:

But when I adjust my .service-icon class the margin -right property doesn’t work.

I also wrote the margin right property in my second container class and that didn’t seemed to work either.

Take a look at how you have your containers set up; I think you missed one in the CSS :slight_smile:

<div class="second-container">
       <!--first item-->
       <article class="item">
               <span class="service-icon">
                       <i class="fas fa-truck"></i>
                <div class="service-info">
       <!--end of first item-->

.second-container is set to Flex Column; putting all <articles> in a column which I think is what you want.

how do you want each .item displayed?

I want it position like the items in the photo

I added .item{
}. Still didn’t work

review your CSS for .item … and make sure you have it display: the way you want

edit: hint; you’ve been using Flexbox and that would work well here too

1 Like

That seemed to do the trick:

Thank you so much!