"Back to Top" CSS id causing other element to misalign

I created an id for my back to top link on my WordPress site.
I styled it using css with the #backtotop selector.
Now when I click on the back to top link, my top nav links all align to the left.
Any ideas or suggestions?
<p id="tothetop"> <a href="#menu-header-menu">Back to Top</a></p>

Open in new window

#tothetop {
	text-align: right !Important;

Open in new window

before:Top navigation before I click on the back top top link.after: URL AFTER I click on the back top top link.Top navigation AFTER I click on the back top top link.
Ima JediAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Julian HansenCommented:
Have you got a link to show us?

Also your question is confusing. You mention #BackToTop but in the code it is #tothetop
Ima JediAuthor Commented:
The site is not live yet.
 You are correct it is #tothetop, please disregard #BackToTop.
Ima JediAuthor Commented:
It turns out that the anchor for #menu-header-menu was set to a ul in the top nav menu. Moving the anchor to another element fixed the issue.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ima JediAuthor Commented:
Found solution before anyone else helped.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.