The "your" refers to W3Schools.com and this being W3Schools Forum the association is logical. I did not mean you personally and if you took that way, I'm sorry.
I have nowhere implied that this is your site or that it is your code. I wrote to this forum because not being proficient with css myself, I was hoping to find someone here that is and that would help me. You volunteered to answer my post and I am grateful for that.
Thanks again, however it's still no go! All menu items are still left aligned across the page.
I copied the code from your site and added/modified as per you suggestions. I am attaching the html.
Really appreciate your help
Untitled-1.html
Untitled-1.html
Thanks for your suggestion.
Did you mean this:
.topnav a {
float: none;
display: inline-block;
color: #f2f2f2;
text-align: center;
padding: 1px 12px;
text-decoration: none;
font-size: 12px;
That did not work for me.
I am using your navigation bar which suits my purposes perfectly. However, I wish I could display the menu items as centered on the page. Since there is no float center option, I would really appreciate any suggestion as how to solve this.
Thank you
Ed