JQuery Links

JQuery Links

Hello everybody,

I have a problem with rendering links.

No matter what I do in the CSS, the links are never presented as intended.

in CSS the links for the menu look like this:
  1. header
  2. {
  3. position: fixed;
  4. top: 0;
  5. left: 0;
  6. padding: 0 100px;
  7. background:#262626;
  8. width: 100%;
  9. box-sizing: border-box;
  10. text-shadow:0 0 0;
  11. }
  12. header .logo
  13. {
  14. color: #fff;
  15. height: 50px;
  16. line-height: 50px;
  17. font-size: 24px;
  18. float: left;
  19. font-weight: bold;
  20. }
  21. header nav
  22. {
  23. float: right;
  24. }
  25. header nav ul
  26. {
  27. margin: 0;
  28. padding: 0;
  29. display: flex;
  30. }
  31. header nav ul li
  32. {
  33. list-style: none;
  34. }
  35. header nav ul li a,
  36. header nav ul li a:link,
  37. header nav ul li a:visited
  38. {
  39. height: 50px;
  40. line-height: 50px;
  41. padding: 0 20px;
  42. color: #fff;
  43. text-decoration: none;
  44. display: block;
  45. }
  46. header nav ul li a:hover,
  47. header nav ul li a.active
  48. {
  49. color: #fff;
  50. background: #2196f3;
  51. }
Html Code:
  1. <html>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <head>
    <title>JVerein Web</title>
          <link rel="stylesheet" type="text/css" href="css/style.css">
                 <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">


    <link href="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" rel="stylesheet">
    <script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
    <script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
    <script type="text/javascript">
    $(document).ready(function(){
    $('.menu-toggle').click(function(){
    $('nav').toggleClass('active')
    })
    })
    </script>
    </head>
    <body>
    <div class="mitglieder"><header>
    <div class="logo">JVereinWeb - DLRG</div>
    <nav >
    <ul><li><a href="?tab=home" data-ajax="false"><i class="fas fa-home"></i>&nbsp;Home</a></li><li><a href="?tab=mitglieder" class="active" data-ajax="false"><i class="fa fa-users"></i>&nbsp;Mitglieder</a></li><li><a href="?tab=spenden" data-ajax="false"><i class="fas fa-piggy-bank"></i>&nbsp;Spenden</a></li><li><a href="?tab=zeiterfassung" data-ajax="false"><i class="fas fa-stopwatch"></i>&nbsp;Zeiterfassung</a></li><li><a href="?tab=wachplan" data-ajax="false"><i class="fas fa-calendar-alt"></i>&nbsp;Wachplan</a></li><li><a href="index.php?out=1" data-ajax="false"><i class="fas fa-sign-out-alt"></i>&nbsp;Logout</a></li></ul>
    </nav>
    <div class="menu-toggle"><i class="fa fa-bars" aria-hidden="true"></i></div>
    </header>

on the homepage however these attitudes pull only conditionally.

(Home, Mitglieder, Spenden and Logout are visited ,Zeiterfassung and Wachplan not)
I expect that the font color is always white. No matter if I visited the links or not.
What am I doing wrong?