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

150
Views
Website Mobile Navigation bar is visible to the right of the toggle button HTML CSS

Issue

The website works fine in desktop view but the media query navigation bar on mobile is shown in the rightmost corner so it's not really hidden

CSS

links{
    position:absolute;
    background:#f44336;
    padding:5px;
    line-height: 50px;
    height:100vh;
    width:200px;
    top:0;
    right:-200px;
    text-align: left; 
    z-index:2;
    transition: 1s;
    }

js

<SCRIPT>
var navLinks = document.getElementById("navLinks");
function showMenu(){
    navLinks.style.right = "0px";
}
function hideMenu(){
    navLinks.style.right = "-200px";

}
</SCRIPT>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Set right = "-999px" maybe can work on mobile like what you want:

<script>
var navLinks = document.getElementById("navLinks");
function showMenu(){
    navLinks.style.right = "0px";
}
function hideMenu(){
    navLinks.style.right = "-999px";

}
</script>
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!