Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

260
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda