Reputation:
I stuck with a problem I can not solve. You may help me.
I have different information pages and at the end is the following link:
"You may find more pictures in our <a href="ga.php#apco">GALLERY</a>"
It jumps to the gallery page and right section, but if all pictures are loaded, it jumps to top. I would like to avoid this jump up!
A part of the gallery php:
<div class="products-section">
<div id="apco">Apartment Concept</div>
<div class="products-grids">
<div class="col-md-4 products-grid">
<div class="gallery">
<a class="mask" href="../data/pic/22.jpg"><img src="../data/pic/22.jpg" class="img-responsive zoom-img" alt="/" title="Apartment"></a>
</div>
</div>
…
I also use jQuery because of design. Please help me and clarify the problem. I am beginner-intermediate HTML-PHP user and mostly work from templates.
Thank you!
Upvotes: 5
Views: 87
Reputation: 29
I have the habit to use an anchor-tag to refer to when I want this kind of navigation. You can even nest an h1 or something else in it.
i.e.
a(id="apco")
h1 someText
Never failed me, I think some teacher hammered it in me a long time ago.
Hopefully it works out for you!
Upvotes: 1
Reputation: 59
Delete #apco
on the tag.
So,
"You may find more pictures in our <a href="ga.php">GALLERY</a>"
Upvotes: 0