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

108
Visualizações
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 à 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