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

113
Vistas
Offset for sectional navigation on page load

Problem - I have a section on my page (which is not in the view as soon as the page loads). I have added a div with an ID (say 'section1'), so that when the user enters "www.mywebsiteurl.com/#section1", the corresponding div is brought into view for the user. Until this point everything is working perfectly fine. Now the main issue that I am trying to resolve is, I need an offset from the top (since I have a fixed navigation bar on the top) so that the content of the section is not behind the navigation bar, but starts just below it. I need this behaviour for when the page loads and the url entered by the user is "www.mywbsiteurl.com/#section1".

NOTE: I want the section to have an offset as soon as the page loads with the url - 'www.mywebsiteurl.com/#section1'

Current Behaviour -

Current behaviour

Expected Behaviour -

Expected behaviour

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