Feel free to check out the link above.
The menu is designed to have a fixed position, so when you scroll down it will stay visible, which is exactly what I intended.
You'll notice there are numerous menu items within the Fixed menuWrapper which spans 100% of the width, while each individual menu item has a fixed width of 1240px since there are 19 menus in total.
The issue arises when viewing the website on a lower resolution monitor, such as a 1024px display. You can test this by resizing your browser window. While everything seems to be working well, the fixed main menu only displays up to Menu 18, leaving a horizontal scroll bar at the bottom of the screen. Even if you scroll horizontally, the content of the website displays fine but the last menu remains hidden. This problem needs to be addressed either through CSS or JQuery.
Below is the code snippet that I've used:
<style type="text/css">
html, body {
margin:0px;
padding:0px;
}
#menuWrapper {
position:fixed;
width:100%;
height:80px;
background-color:#999;
}
#menu {
position:relative;
width:1240px;
margin:0 auto;
height:80px;
white-space: nowrap;
}
#content {
padding-top:90px;
width:1240px;
background-color:#F3F3F3;
margin:0 auto;
}
</style>
<div id="menuWrapper">
<div id="menu">
Menu 1 |
Menu 2 |
Menu 3 |
Menu 4 |
Menu 5 |
Menu 6 |
Menu 7 |
Menu 8 |
Menu 9 |
Menu 10 |
Menu 11 |
Menu 12 |
Menu 13 |
Menu 14 |
Menu 15 |
Menu 16 |
Menu 17 |
Menu 18 |
Menu 19
</div>
</div>
<div id="content">
Website Content<br />
Website Content<br />
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</div>