The problem lies in the fixed width applied to the navigation links, resulting in improper scaling when the window size changes. To resolve this issue, consider using percentages for a more flexible layout or adjust widths dynamically with media queries.
The CSS code causing the problem is:
#navigation ul a:link {
padding: 5px 5px 15px;
margin-bottom: 2px;
display: block;
width: 100px; /* SHOULD BE UPDATED */
text-decoration: none;
background-color: maroon;
color: #FFF;
}
An effective media query example would be:
@media(max-width: 768px){
#navigation ul a:link {
width: 60px;
}
}
Implementing the above will resize the links to 60 pixels
when the screen width falls below 768px