Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Jump to a specific point on a responsive page

Posted on 2016-11-26
5
34 Views
Last Modified: 2016-11-26
Hello;

I have a div with its content that  on desktop state is above the page but on responsive state it goes down in middle the page ,and i want that with click on a link user goes to that point in responsive state,is there a solution?

Thanks
0
Comment
Question by:MOSTAGHASSI
  • 3
  • 2
5 Comments
 
LVL 55

Expert Comment

by:Julian Hansen
ID: 41902444
The usual method is
<a href="#idoftarget">Link</a>

Open in new window


But without seeing the code impossible to guess.

Post some code and we can take it from there.
0
 

Author Comment

by:MOSTAGHASSI
ID: 41902459
My codes:

<div class="artists-list-alphabet">
 artists list alphabet
 </div>

Open in new window


This div on desktop is above the page,but on responsive it goes down on the page and its position is not fix,because it depend on another content of that page,so above the page i put a link:

<a href="#">Link</a>

Open in new window


and i want that when user click on this link it goes down near the div and see it.
0
 
LVL 55

Accepted Solution

by:
Julian Hansen earned 500 total points
ID: 41902524
Add an id
<div class="artists-list-alphabet" id="artists-list-alphabet">
 artists list alphabet
 </div>

Open in new window

Create link like this
<a href="#artists-list-alphabet">Link text</a>

Open in new window

0
 

Author Closing Comment

by:MOSTAGHASSI
ID: 41902773
Thanks,it works.
0
 
LVL 55

Expert Comment

by:Julian Hansen
ID: 41902815
You are welcome.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question