0

Can someone help and tell me how I can center an image inside the circle as show in the image below.

enter image description here

Before writing this post I spend some time looking for an answer but I could not find out how.

Here is the only code i have, this is HTML:

<div class="service">
    <div class="circle">      
      <!-- <img src="/assets/images/engineering.png" alt="image mécanisme"> -->
      </div>
     <h2>Automatiser votre<br>funnel d'acquisition</h2>
</div>
Dan Bonachea
  • 2,408
  • 5
  • 16
  • 31

1 Answers1

2

Using HTML, position the image inside the parent div (which is the circle div).

In the parent div (with class circle), using CSS add

.circle { display: flex; align-items: center; justify-content: center}

This should add the image into the circle div.

Please mark this as correct if it's helpful.