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.
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
<div class="second-container">
<!--first item-->
<article class="item">
<span class="service-icon">
<i class="fas fa-truck"></i>
</span>
<div class="service-info">
</div>
</article>
<!--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 added .item{
margin-right:20px;
}. 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