![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is it possible to have a link scroll to slightly above an anchor (like 10 pixels above)? And before anyone suggests it... I cannot physically move the anchors. They are part of a repeat region, where the anchor names are dynamically defined. |
#3
| |||
| |||
|
#4
| |||
| |||
|
#5
| |||
| |||
|
|
create it dynamically i think |
#6
| |||
| |||
|
|
You know how you can set links to jump to a specific part of a web page, such as "Jump to Top"? You probably already know this, but the tag that defines where the link should jump to is called an anchor. If possible, I want to set a link to jump slightly above the anchor. |
#7
| |||
| |||
|
#8
| |||
| |||
|
|
Here's a demonstration of why I can't, or at least don't know how to, go about using another anchor or moving the one already there: ?php do { ? div id="<?php echo $row['id']; ?>" ...... [...stuff to repeat...] ...... br / ?php while $row = mysql_fetch_assoc($query); ? (the div with the dynamic id is the anchor) The problem is the anchor is the first thing in the repeat region. The only method I can think of is putting an anchor with the id of the next record before the <br />. The problem there is that there is no <br /> before the first record. Also, I don't know how to get the ID of the next record. |
![]() |
| Thread Tools | |
| Display Modes | |
| |