Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

194
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda