Whenever I add the style
position: fixed;
to #cssmenu
it causes the right side of the menu to disappear
Is there a way to resolve this issue? Also, can you explain why it occurs so I can avoid it in the future?
If there are multiple solutions, please provide all of them
I really need assistance with this problem
The complete code is as follows:
<!DOCTYPE html><html class=''>
<head><meta charset='UTF-8'><meta name="robots" content="noindex"><link rel="canonical" href="http://codepen.io/bobbybob123/pen/pJNaqE?editors=110" />
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:700" >
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:100,100italic">
<style class="cp-pen-styles">*{
margin: 0;
padding 0;
}
header{
height: 100vh;
background-image: url("http://nookacorp.com/images/Screenshot%202015-05-26%20at%204.13.50%20PM.png");
width: 100%;
background-size: cover;
background-position: 50% 50%;
}
#cssmenu {
background: #FFFFFF;
width: auto;
}
#cssmenu ul {
list-style: none;
margin: 0;
padding: 0;
line-height: 1;
display: block;
zoom: 1;
}
#cssmenu ul:after {
content: " ";
display: block;
font-size: 0;
height: 0;
clear: both;
visibility: hidden;
}
#cssmenu ul li {
display: inline-block;
padding: 0;
margin: 0;
}
#cssmenu.align-right ul li {
float: right;
}
#cssmenu.align-center ul {
text-align: center;
}
#cssmenu ul li a {
color: #499CB8;
text-decoration: none;
display: block;
padding: 30px 25px;
font-family: 'Open Sans', sans-serif;
font-weight: 700;
text-transform: uppercase;
font-size: 14px;
<!-- The rest of the code will be omitted for brevity -->