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

253
Views
How to get an image and text inside a icon side by side?

I want to get an small png image and some text side by side in an icon how to achieve that currently it's vertically there? This is the order I currently have want to get the two along side instead of this the division is itself different because these are in a different subclass inside this messagecontent class.

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

0

Use CSS flexbox. Sample code :

.image-wrapper{
  display:flex;
  flex-direction:row;
  justify-content:center;
  align-items:center;
  background:#eee;
  padding:1rem 2rem;
  border-radius:1rem;
}

.image-wrapper img{
  height:2rem;
  margin-right:1rem;
 }
 
.image-wrapper p{
  font-size:1.8rem;
 }
<div class="image-wrapper">
  <img src = "https://www.freepnglogos.com/uploads/google-logo-png/google-logo-icon-png-transparent-background-osteopathy-16.png" alt="logo"/>
  <p>Some random text</p>
</div>

Refer this to learn more about CSS flexbox link

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!