List of Cars to individual car by click on a List Item - this may go to the mid of (individual car) - what solution go to Top of div

Bootstrap 3 Mobile App

My App (USED CARS) consist of 3 pages with each page having 3-4 hidden blogs/divs

When go from List of Cars to individual car by click on a List Item - this may go to the mid of Div(individual car) - what solution go to top of div?

i have to use Anchor tags? If yes If not using href - how go to top or to an anchor with JavaScript…?

<div id="anchorname"> should always provide an anchor point at the top of the div that you can go to using <a href="#anchorname"> (or equivalent) unless the div is located inside a table or is too low down on the page to ever get to the top of the viewport…

Some browsers will always position to the top of the table for any anchor points that are inside the table so that the column headings are visible.

This is how HTML works even without JavaScript. Setting the values from within JavaScript doesn’t change how it works.

Note
I use Bootsteap 3
I use hide () & show () divs ,
and not using href

What the solution to this…?

well?

In Bootstrap 3.5 show(); hide() functions for div selectors (pages in mobile app) DO NOT bring user to top of div, what the solution?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.