0

I have this HTML Code on my webpage:

<a id="last"></a>

however i am also including (PHP) a fixed/static (style="position:fixed;") menu bar at the top of the page so when i go to

http://www.domain.com/index.php#last

the a id is showing behind the menu bar.

Is there a way I can make it display a little lower down rather than right at the top of the page so it doesn't show behind the menu bar?

user2710234
  • 3,177
  • 13
  • 36
  • 54

1 Answers1

1

You can try to use some Jquery to move the screen to the point that you want:

$("html, body").animate(
{
    scrollTop: $("#last").top + 50
}, 500);

Is that what you wanted ?

Ariel
  • 911
  • 1
  • 15
  • 40
  • Sorry, i undertood yout question wrong. To fix it you should use some CSS, you could use z-index on your a element or some margin. – Ariel Feb 05 '14 at 14:07