:S The code your showing is correct, I believe. The only thing I can think of is maybe it doesn't like the hyphen. Try renaming it to "aboutUs" and see if that works.
To do a link to a location on the same page you want to assign an id to the element and format the attribute href="#elementId", so you're doing that part exactly write.
One other idea... the web browser is only matching the characters and is not "smart" about identifying related symbols; with so many visually similar encodings in UTF8 it's possible that they look the same but that one or more of your characters are actually different encodings. Whenever I have a situation where this might be a problem, you can make sure the two locations are identical by copying the id from the div and pasting it into the href. That ensures that they're identical. Since "about-us" has mostly letters which would be typed in on the keyboard, the hyphen sticks out as the most likely character responsible if that is the problem.
__________________
-------------------------
Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe
When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper
Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.
|