I am currently utilizing bootstrap 4.4.1 for my template and I am attempting to implement a right-to-left (RTL) Nav bar for an Arabic website, ensuring the menu displays from right to left.
In my code, the fifth item from the right has a submenu which is not aligning correctly with the left side of the parent menu, as demonstrated in both the example and screenshot. If I add right :0;
to the .submenu
, it shifts the menu all the way to the extreme right.
Additionally, the menu does not remain open when hovering over it; it simply disappears when trying to move to child items.
I am uncertain about what mistake I might be making...
https://i.sstatic.net/BcFUM.png
The desired menu layout can be observed in the image below:
https://i.sstatic.net/0h59s.jpg
https://codepen.io/KGuide/pen/gOpdLPR
.menu{direction:rtl;}
.header-menu{background:#EEE6D3; min-height:30px; text-align:center; font-size:18px;}
.header-menu ul {
margin: 0;
list-style: none;
position: relative;
}
... (Code continues)
... (Additional Code continues)