Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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

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
240,995 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.

https://w.trhou.se/7f1i45710i, I checked the spelling and the problem is still there, I would appreciate any help you could give. Thanks

Steven Parker
Steven Parker
240,995 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.

Thank you, it worked!