Ima Jedi
asked on
"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?
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>
#tothetop {
text-align: right !Important;
}
before:after:
ASKER
The site is not live yet.
You are correct it is #tothetop, please disregard #BackToTop.
You are correct it is #tothetop, please disregard #BackToTop.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Found solution before anyone else helped.
Also your question is confusing. You mention #BackToTop but in the code it is #tothetop