Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

110
Views
Pie de página superpuesto al contenido al intentar que permanezca en la parte inferior de la página

Estoy tratando de hacer un footer de página en la parte inferior de la página, pero se superpone al contenido. Como esto:

ingrese la descripción de la imagen aquí

cuerpo, html, #raíz

 html, body, #root { height: 100%; } #root , body { display: flex; flex-direction: column; }

pie de página

 position:absolute, bottom:0, width:100%
about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Eso es porque estableces position:absolute en el footer de página. Hay formas más sencillas de fijar el pie de página en la parte inferior. Digamos que la estructura de su proyecto es así, observe que hay tres hijos directos dentro .app :

 <html> <body> <div id= "root"> <div class= "app"> <Header></Header> <Content></Content> <Footer></Footer> </div> </div> </body> </html>

Todo lo que necesitarías es:

 .app { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; /* gap: 3rem; */ }
about 4 years ago · Juan Pablo Isaza Report

0

Quizás esto te ayude.

 body{ height:100vh; margin:0; } header{ min-height:50px; background:lightcyan; } footer{ min-height:50px; background:PapayaWhip; } /* Trick */ body{ display:flex; flex-direction:column; } footer{ margin-top:auto; }
 <body> <header contentEditable>Header</header> <article contentEditable>Content</article> <footer contentEditable>Footer</footer> </body>

Si quieres apegarte a la posición absoluta

 body{ min-height:100vh; margin:0; position:relative; } header{ min-height:50px; background:lightcyan; } footer{ background:PapayaWhip; } /* Trick: */ body { position: relative; } body::after { content: ''; display: block; height: 50px; /* Set same as footer's height */ } footer { position: absolute; bottom: 0; width: 100%; height: 50px; }
 <body> <header contentEditable>Header</header> <article contentEditable>Content</article> <footer contentEditable>Footer</footer> </body>
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!