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

209
Visualizações
How to hook into html with my own html overlay?

I am trying to overlay some HTML code over a website's image using <iframe> and CSS.

The website is a weather-monitoring website (which we've purchase btw), that I want to overlay with my own HTML code and image.

Is it possible to "hook" into one portion of the image with my own image? I want it hooked (so-to-speak, pardon my jargon), so the browser's resizing won't change it's layout and for it to also work on mobile device browsers.

This is the website I am referring to (sorry it's not a public accessible site).

3rd party weather monitoring website

I've managed to somewhat achieve what I want using this code...

<style>
  iframe {
    position: absolute;
    border: none;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
  }
</style>

<div style="z-index:99;position:absolute;top:115px;right:352px">
    <canvas id="compass" height="230" width="230"></canvas>
    <asp:Label ID="lblDegrees" runat="server"></asp:Label>
</div>

<iframe id="iframe1" 
    src="https://asdjkhsdfjkhsdfjkh">    <-- internal website for above image
</iframe>

But as you've guessed, the top and right positioning is hardcoded to overlay that box in the right spot.

However, as soon as I re-size the browser or view it on a mobile device, the <canvas> element shifts to the right (or left or down) and the underlying compass dial shows from behind (somewhat partially obscured).

i.e.

enter image description here

There must be a better way to do this. Any ideas and suggestions?

Thanks

about 4 years ago · Juan Pablo Isaza
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