I am currently in the process of creating a website that features a homepage navigation menu. When users hover over the menu options, those with arrows will reveal a submenu with additional selections below them. Here is an image for reference (https://i.sstatic.net/xkKMs.png). My main challenge lies in making the submenu responsive to different screen sizes. I am struggling to keep it consistently aligned with the menu option as the screen size changes.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Yazigi Tech</title>
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f4969b9b808780869584b4c1dac7dac4">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<!-- More code here -->
</body>
</html>
And this is the related CSS:
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
/* CSS code here */
I have experimented with changing displays to relative and using percentage units but haven't been able to find a solution to the alignment issue. Your insights would be greatly appreciated!