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

196
Vistas
How do I make an image a href from this code?

So I have this web page, here's what it looks like:

https://prnt.sc/vY4OUXrUpnr9

now I want to make the center image a link. So when they click it they are redirected to a download. Here's the current code below in index.html but I don't know what to add/how to make the image a link. I think it's something to do with href. Please let me know, but need this done.

<style type="text/css">
        body{
            background-color: #484848;
        }
        div.container{
                text-align: center;
                position: absolute;
                top: 45%;
                left: 42.5%;
        }
        div.container img{
            width: 70px;
        }
        div.container p{
            color: #fff;
            font-size: 12px;
            font-family: sans-serif;
        }
    </style>
</head>
<body>
<div class="container">
    <img src="img/error.png">
    <p>A plugin is needed to display this content.</p>
</div>

<!-- page content end -->
</body>
</html>
about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

Change it to


<div class="container">

    <a href="http://example.com">

        <img src="img/error.png">
        <p>A plugin is needed to display this content.</p>

    </a>

</div>

about 4 years ago · Juan Pablo Isaza Denunciar

0

<a href="https://www.google.de">
  <img src="https://img001.prntscr.com/file/img001/UAcHefR6SIeX5mTnHUmcdg.png" width="200" height="100">
  <p>A plugin is needed to display this content.</p>
</a>
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