Solved

Jump to a specific point on a responsive page

Posted on 2016-11-26
5
36 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
[X]
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
  • 3
  • 2
5 Comments
 
LVL 57

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 57

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 57

Expert Comment

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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Suggested Solutions

Title # Comments Views Activity
Technology Resume 7 85
ASP get fieds value 2 38
Can't get cursor to change 3 20
My tooltip is not displaying correct 11 7
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

738 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