In article Gerard Jonker wrote:
> In article <TYpob.1365$>, Leif K-Brooks
> <> wrote:
>
> > Gerard Jonker wrote:
> >
> >
> > > I am trying to synchronize 2 frames with code as shown below but it
> > > only works in IE5.2 for the Mac, in Safari or in IE6 for Windows it
> > > does not work.
> > > Is there a solution for this?
> >
> > Don't use frames.
>
> Thanks for your advice, it was very useful to me.
Nice to know. It usually doesn't help to imitate frames using CSS though.
> I have created a construction with a single document using fixed
> position elements.
I don't think that is best aproach. But I don't have any idea what you
are doing, so it is really hard to tell. If this is going to be normal
webpage for normal web audience, I think you need to rethink your
consept.
> However, I want to be able to scroll part of the
> document horizontally, while maintaining its vertical position. Is
> there a way to do this using CSS? I have not found one in the official
> CSS documentation.
This is almost possible using absolute positioning, and overflow:scroll.
Quick & dirty example:
http://www.student.oulu.fi/~laurirai...scrolling.html
The problem is that horizontal scrollbar is likely to be outside viewport
most of the time, so you need to assume people know how to scroll
horizontally whitout it. Too bad it is impossible in some browsers
(tested on O7.21). Using iFrame instead scrolling div would propably help
0.1% of normal web audience that know how to scroll horizontally whitout
scrollbar. Then you could add some JS scrollbar. But it wouldn't work for
lots of people. I don't think there is better way, unfortunately.
If you can scroll overflow:auto element using JS, I think it would be
somewhat easy to make it degrade well (whole page would be horizontally
scrolled). But I don't know if that is possible using JS+DOM.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.