Joined January 2012
·
0fd1ac94827ef5f38c0a9b2eec9f14e6

Ben Roux

Co-founder at Hatchpost
Co-founder
Hatchpost
·
Denver, CO
·
·

@passcod Indeed they will behave the same. But as soon as user scroll horizontally, or worse, resizes their browser, a fixed position nav will start to lay over the page contents.

Built up a quick and dirty example of what I mean by this. Try dragging your browser left and right.

@passcod Sorry for the confusion. Whenever you use javascript to handle element positioning, you must handle both scrolling and window resizing events.

Scrolling events typically requiring adjusting the top property, while horizontal resizing requires, as I showed above, adjusting the left (and potentially top as well)

Excellent point though. I will go ahead and edit to try and clean up the topic hopping.

Achievements
218 Karma
9,127 Total ProTip Views