Post by jmahoney127 » Wed Dec 07, 2011 9:39 pm

I am creating a site using opencart for a client (I can't show the site, unfortunately). At their request, when a user clicks a link on the Categories module, the page should focus at the Category header on the page, rather than at the top of the web page. I have attempted to do this using the standard <a name="x"> approach and adding a #x to the end of the url, but it doesn't seem to be working. Any ideas?

Thanks

Newbie

Posts

Joined
Sun Oct 16, 2011 11:55 pm

Post by uksitebuilder » Fri Dec 09, 2011 1:27 am

no need to use 'a name' if the element has an id

eg <div id="header">

url would be somepage#header

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom
Who is online

Users browsing this forum: No registered users and 81 guests