I have been working on a WordPress theme and encountered an issue where the navigation menu items overflow the content area.
Whenever I resize the browser window or add new items to the menu, they appear to extend beyond the header's boundaries.
Below, you will find the code snippet along with a screenshot for reference:
<header class="site-header">
<h1><a href="<?php echo home_url(); ?>"><?php bloginfo('name'); ?></a></h1>
...
(Code continues as per original text)
...
You can view the screenshot here.