Neil Gould said:
dorayme wrote: ....
Not that is relevant to his problem, AFAICT. The fixed-header pages I have
work properly in newer versions of FF, but are mostly based on HTML 4.01 &
CSS2. There are many such examples on the web.
Ed himself gave a test case very early in the original thread. It used
no php and needed nothing but your favourite doc type and css - he
wanted pretty for some reason but we can eliminate all that and easily
put a 4.01 doctype on.
You could look at that, and demonstrate how you would go about
producing that basic look (minus the pretty CSS, no need for CSS3)
that works to scroll as you and Ed want it to scroll in FF at least
(if you you are not interested in browsers in general).
Use your 4.01 and CSS2 as his mainly does.
How can you be sure? Have you located the HTML issue that causes the
behavior?
What was "the" cause of 9/11? It's complicated! The matter is an
interaction between a styled page and various browsers. Different
browsers can and do give different results. Even the same browser,
like FF, can give different results depending on the text size of the
user.
Styling BODY element with top margins etc. has uncertain results in
different browsers vis a vis scrolling. Even user text size can affect
the results. Take a look at:
<
http://dorayme.netweaver.com.au/fixedHeaders/bodyTopMargining.html>
the inconsistency between FF's Page Down and Click under scroll handle
is evident at normal user text size. But alter it on your own browser
(by say Zoom Texting Up) and neither works as you would want. In
Safari, nothing works as you would want.
What is needed is a different approach. Best is probably to avoid
fixed header that go all the way across the viewport at the top, they
take up valuable viewport space for a start, but at the very least
keep them very small in height to minimise browser differences and
unwanted reactions vis a vis scrolling
If the cause of the
problem is not in the server-side code, and it's not in the CSS, then it
must be in the HTML of Ed's page, which is not complex.
How do you avoid it? What is your *basic strategy* in all *your*
webpages that employ fixed headers but do not exhibit Ed's problem
that you have talked about?