I'm currently working on creating a navigation bar using HTML and CSS. However, I'm facing an issue where the nav-bar doesn't extend to the full width of the page as intended. I've attempted adjusting the padding-left: 0px
and padding-right: 0px;
, but unfortunately, it hasn't resolved the problem.
Below is a snippet of my current progress:
$banner-height: 50px;
@import 'https://fonts.googleapis.com/css?family=Work+Sans:400,500,900';
nav {
height: $banner-height * 2;
position: fixed;
width: 100%;
top: 0;
transition: top 0.2s ease-out;
}
.banner {
text-align: center;
line-height: $banner-height;
top: 0;
width: 100%;
background: #FEFFB7;
box-shadow: inset 0px -1px 0px 0px rgba(0,0,0,0.13);
}
/* More CSS code here */
The main issue being faced can be seen in these screenshots:
https://i.sstatic.net/SkfIy.png
https://i.sstatic.net/KCh0u.png
(View in full screen for better visibility).