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:
- header
- {
- position: fixed;
- top: 0;
- left: 0;
- padding: 0 100px;
- background:#262626;
- width: 100%;
- box-sizing: border-box;
- text-shadow:0 0 0;
- }
- header .logo
- {
- color: #fff;
- height: 50px;
- line-height: 50px;
- font-size: 24px;
- float: left;
- font-weight: bold;
- }
- header nav
- {
- float: right;
- }
- header nav ul
- {
- margin: 0;
- padding: 0;
- display: flex;
- }
- header nav ul li
- {
- list-style: none;
- }
- header nav ul li a,
- header nav ul li a:link,
- header nav ul li a:visited
- {
- height: 50px;
- line-height: 50px;
- padding: 0 20px;
- color: #fff;
- text-decoration: none;
- display: block;
- }
- header nav ul li a:hover,
- header nav ul li a.active
- {
- color: #fff;
- background: #2196f3;
- }
Html Code:
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?