HTML HTML Basics Going Further with HTML Linking to Sections of a Web Page

Jada Russell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jada Russell
Front End Web Development Techdegree Student 5,095 Points

Having trouble with the read more link

I made the id for the articles vr-articles in article.html, I then entered it as #vr-articles in the read more links of index.html. Mine still goes to the top of the page instead of the top of the article.

2 Answers

Steven Parker
Steven Parker
202,004 Points

Check for a possible misspelling in the id of the target element (or this href).

If you still have trouble, make a snapshot of your workspace and post the link to it here.

Steven Parker
Steven Parker
202,004 Points

It works correctly for me. But — the "article.html" page is not very big, so if your window is tall enough to accommodate the entire page with no scrollbar, the entire page will be displayed. This is normal browser behavior.

Try making your browser window smaller to confirm that the location reference is being used.