This far into buying templates and taking out the WP overhead...

I have finally hit a brain teaser.

For almost two decades, we have done the <a name="aname">I'm something</a> in the middle of a page, and a <a href="#aname">I'm something</a> in a menu at the top of the page.

I have a script, with lots of CSS, where that doesn't work.

html5 supports id="aname" rather than href="#aname".

That doesn't work.

What in css can conflict with that basic concept?

I don't have a lot of choices, <> occurrences, to put it. An example says to put the "id=" in a <h2> tag. I wanted to put it a little closer to the content, which doesn't have a <h*> tag at all. I'll try putting one in, like a <h3> or <h4>. Maybe style definitions for <h*> tags is contradicting it.