Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

385
Views
How do i put some text below icons

I want to put text below some icons but it ends up being after it, like in the hyperlink below. I tried to use span but the text was just invisible and ive been struggling for about 1 hour now.

How it looks:

How it looks

But this is how i want it to look:

How i want it to look

Here's the code:

.services-col {
  min-width: 150px;
  height: 150px;
  background: rgba(255, 99, 71, 1);
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 22px;
  margin: 0 180px;
}

h3 {
  text-align: center;
  font-weight: 600;
  margin: 10px 0;
}

.services-col:hover {
  box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.5);
}
<div class="services-col">
  <div class="icon"><i class="fa-solid fa-wrench" aria-hidden="true"></i></div>
  <h3>Refurbishing</h3>
</div>
<div class="services-col">
  <div class="icon"><i class="fa-solid fa-hammer"></i></div>
  <h3>Construction</h3>
</div>
<div class="services-col">
  <div class="icon"><i class="fa-solid fa-ruler" aria-hidden="true"></i></div>
  <h3>Designing</h3>
</div>

about 4 years ago · Juan Pablo Isaza
3 answers
Answer question

0

your html structure is incorrect

.services-col {
  min-width: 150px;
  height: 150px;
  background: rgba(255, 99, 71, 1);
  
  border-radius: 50%;
  font-size: 22px;
  margin: 0 180px;
}

.col{
display: flex;
  flex-direction:column;
  text-align: center;
  justify-content: center;
  align-items: center;}

h3 {
  
  text-align: center;
  font-weight: 600;
  margin: 10px 0;
}

.services-col:hover {
  box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.5);
}

#container{
display:flex;
}
<div id='container'>
<div class='col'>
  <div class="services-col"></div>
    <div class="icon"><i class="fa-solid fa-wrench" aria-hidden="true"></i></div>
    <h3>Refurbishing</h3>
</div>
  
  
  
<div class='col'>  
  <div class="services-col"></div>
    <div class="icon"><i class="fa-solid fa-hammer"></i></div>
    <h3>Construction</h3>
  </div>
  <div class='col'>
  <div class="services-col"></div>
    <div class="icon"><i class="fa-solid fa-ruler" aria-hidden="true"></i></div>
    <h3>Designing</h3>
  </div>
</div>

about 4 years ago · Juan Pablo Isaza Report

0

It's possible to absolutely position the text outside the container by using a top:100% top position the h3 passed the bottom of the div, and applying a position: relative to your service-cols. This is a bit clumsy though...

.services-col{
    min-width: 150px;
    height: 150px;
    background: rgba(255,99,71,1);
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 22px;
    margin: 0 180px;
    position:relative;
}
h3{
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
    position:absolute;
    top: 100%;
}

.services-col:hover{
    box-shadow: 0 0 20px 0px rgba(0,0,0,0.5);
}
<div style="display:flex;flex-direction:row;">
    <div class="services-col">
        <div class="icon"><i class="fa-solid fa-wrench" aria-hidden="true"></i></div> 
        <h3>Refurbishing</h3>
    </div>
    <div class="services-col">
        <div class="icon"><i class="fa-solid fa-hammer"></i></div>    
        <h3>Construction</h3>      
    </div>
    <div class="services-col">
        <div class="icon"><i class="fa-solid fa-ruler" aria-hidden="true"></i></div>
        <h3>Designing</h3>
    </div>
</div>

about 4 years ago · Juan Pablo Isaza Report

0

I recommend wrapping another div around the icon, separating the text from the circle. You will need to add some styling to the box. For example:

 .services-col {
  background: rgba(255, 99, 71, 1);
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 22px;
  width: 150px;
  height: 150px;
 }
    
.box {
  width: 150px;
}

h3 {
  text-align: center;
  font-weight: 600;
  margin: 10px 0;
}

.services-col:hover {
  box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.5);
}
<div class="box">
    <div class="services-col">
        <div class="icon"><i class="fa-solid fa-wrench" aria-hidden="true"></i></div>
    </div>

    <h3>Refurbishing</h3>
</div>

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!