Support » Developing with WordPress » navbar help on mobile

  • On mobile the top nav bar is being overlapped by body content, and the same occurs when opening the sidenav hamburger menu.

    I need help ensuring that the top nav is not being overlapped and when the sidenav menu is opened, it is on top of everything.

    /*BEGIN SIDE NAV*/
    .sidenav {
      height: 100%;
      position: fixed;
      z-index: 999;
      top: 0;
      left: -500px;
      background: #295a8f;
      background-repeat: no-repeat;
      background-size: cover;
      overflow-x: hidden;
      padding-top: 60px;
      transition: 0.2s;
      -webkit-transition: 0.2s;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
      width: 250px;
    }
    .sidenav a:hover, .sidenav a:focus {
      color: #000;
      text-decoration: none;
      padding-left: 40px;
    }
    .sidenav .closebtn {
      position: absolute;
      top: 0;
      right: 25px;
      font-size: 36px;
      margin-left: 50px;
    }
    .sidenav a {
      padding: 8px 8px 8px 32px;
      text-decoration: none;
      font-size: 12px;
      color: #fff;
      display: block;
      transition: 0.3s;
      text-transform: uppercase;
    }
    .mobilecontainer span {
      color: #295a8f;
      margin-right: 10px;
      margin: 0px 9px;
      padding: 10px 0;
      position: relative;
      z-index: 1;
    }
    .mobilecontainer img {
      width: 63px;
      margin: -19px 0;
      position: relative;
      z-index: 1;
    }
    .mobilecontainer {
      background-color: #fff;
      padding-left: 20px;
    }
    /*END SIDE NAV*/
    /*BEGIN: HEADER*/
    .navbar-set li a {
        color: #003333;
        font-size: 16px;
        padding: 0 8px;
    }
    .navbar-set li a:hover{
      color: #2194cb;
    }
    ul.social li:hover a {
        color: #ccc;
    }
    ul.social li.icons {
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 5px;
        border-radius: 100%;
    }
    
    ul.social li.icons a {
        color: #fff;
            font-size: 20px;
    }
     ul.social li.fb.icons {
        background: #072e82;
    }
    
    ul.social li.tw.icons {
        background: #09a8ff;
    }
    ul.social li.ins.icons {
        background: #0070af;
    }
    
     ul.social li.gplus.icons {
        background: #ff0000;
    }
     ul.social {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        margin: 10px 0;
    }
    header {
        padding: 15px 0;
    }
    .navbar-set li.quote-btn {
        padding: 10px;
        border-radius: 10px;
    }
    
    .navbar-set li.quote-btn a {
        color: #fff;
        text-transform: uppercase;
        font-size: 16px;
        font-weight: bold;
    }
    .navbar-set li.active a {
        font-weight: 800;
        border-bottom: 2px solid #2194cb;
        padding-bottom: 4px;
    }
    /*END: HEADER*/

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.