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

182
Vistas
How do I get text to appear over a div

Good morning. I am currently working on a final project for my Unix class and it trying to implement some of the stuff learnt through building a web game. One feature that I want to incorporate is the ability to add text over a div as shown in the picture. How would I go about that?

image of result

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Try including some of your own source code next time, just so we get an idea of what you're having issues with.

But to put text over, try using position: relative, inside a div with a background image of what you want.

Eg.

.parent {
       background-image:url("https://picsum.photos/200/300");
       width: 800px;
       height: 800px;
    }

.text {
      position: relative;
      top: 20px;
      left: 40px; /*edit top, left, right, and bottom to change position*/
      
      font-weight: bold;
    }
    <body>
      <div class="parent">
        <p class="text">TEXT!</p>
      </div>
    </body>

If you can't use a background image, try using absolute positioning. Here's a great tutorial for that: https://www.youtube.com/watch?v=P6UgYq3J3Qs

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