Need help with centering and expanding text in drop-down

Thanks for your reply.
I added the code here:

The view of it there shows the ability to open and close the drop-down section by selecting the Click + - text

And the text looks centered there, and spread out horizontally (but not on my page).

Which made me realize that it is the page that I have this code on.

I moved it to another page and the text is centered and horizontally spread.

So, thank you for suggesting that I put the code up somewhere else to show.

I’d like to figure out how to get the drop-down to close upon the sliding out tab/bar sliding back to hide. Any ideas?

Thanks again