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

189
Vistas
Change image default white background

I have a div with a anchor tag. Inside the anchor tag I want to have an image. Basically, the image come with a white background. I'm trying to change this background to div's color (grey). The photo is a square and the part left from image has a white background. Is there any possibility to change this??

<div class="container">
            <a target="_blank" href="">
                <input class="image" type="image" alt="" src="photo.png">
            </a>
</div>
about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

If the white background is part of the image, it means the image file contains white pixels as background, you won't be able to change it with code (in a simple way). I suggest you edit the picture using https://www.photopea.com/ or any other image editing software (Photoshop, Gimp, ...) to delete those white pixels, then save the picture as PNG to keep its transparency aspect.

about 4 years ago · Juan Pablo Isaza Denunciar

0

Ya if the image only contains that white background then it cant be changed using javascript, so you need to use any of the online softwares to edit your picture.

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