I am currently experimenting with a dropdown navigation bar using pure CSS. However, I am facing issues with text alignment as it only aligns the dropdown text. Setting left: 50% and right: 50% does center the text, but it doesn't cover the width of my page. Additionally, using overflow: hidden hides the dropdown which is not desirable.
Check out this JSFiddle for reference.
I want to achieve the text styling like in this example, but due to overflow issues, the dropdown is not visible.
CSS:
ul.dropdown, ul.dropdown li, ul.dropdown ul {
// CSS rules here...
}
// More CSS rules...