Jump to content

Scroll down


Recommended Posts

Put an element with an id attribute on the page at the point where you want the browser to scroll to.

<div id="destination">Destination</div>

Then put a link that goes to that element:

<a href="#destination">Go to destination</a>


Link to comment
Share on other sites

  • 2 weeks later...

To centre text and inline elements <a>..</a>, it must be within a block element paragraph <p>...</p>, or  <div>...</div> , and that block element must use text-align: center;

OR turn inline element '<a>' then use 'text-align: center;' on that. but note the link will stretch from left to right, unless you give it a specific fixed width, and use margin: 0 auto;


Edited by dsonesuk
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...