enwise — 2011-06-13T23:53:05-04:00 — #1
Whats another way I can jump my page from the bottom of the page with a "Back to Top" link without adding an empty #top div right after the body? Is there any way to do this without adding an extra div? I can probably add an id to the body but would want to avoid that if possible
patricksamphire — 2011-06-14T04:21:26-04:00 — #2
You need to put an id on some element at the top of the page (or use an existing id on an element up there). It doesn't matter if it's the body, the h1 or an existing div.
Out of curiosity, is there a particular reason why you don't want to put an id="top" on the body element?
earlyout — 2011-06-14T07:22:05-04:00 — #3
How about just:
<a href="#">Back to Top</a>
enwise — 2011-06-14T08:36:40-04:00 — #4
stomme_poes — 2011-06-14T09:36:45-04:00 — #5
patricksamphire — 2011-06-14T12:03:56-04:00 — #6
I've found that gives problems with certain CMSs.