Solved

Jump to a specific point on a responsive page

Posted on 2016-11-26
5
30 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 54

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 54

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 54

Expert Comment

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

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

831 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