tags:

views:

12

answers:

1

Hi

At this site...

http://dev.missionmedia.net/justkidsmaryland-backup/#home

I have a fixed nav and header when user clicks a title on nav it takes them to proper content box. Yet when they click from "Just Kids," to "Home," the top content is hidden behind the fixed header. Also you will notice this happens when the page loads; content is hidden behind the fixed header.

Ive tried a few things; added a div with height to push content down as seen here http://dev.missionmedia.net/justkidsmaryland/#home but here when page loads the right content area is pushed down.

Has anyone seen a site like this before or have a suggestion on how to fix the above?

thnx jonah

A: 

Anchors behave this way. When you jump to an anchor it's going to attempt to go to the top of the screen.

Seems like you're using Javascript already for that smooth scroll effect. During the effect, instead of scrolling to the anchor, prevent the default action, get the top offset of the anchor, and scroll to (that top offset - the header height)

Robert
thnx Robert! Looks like that would do the trick, yet we need to create hacks to get this working in IE. Write separate code.
Jonah1289