I’m creating a JavaScript-driven timetable overview screen. It shows times of day as rows doing down the left, and has the days as columns going across the top.
There’s an example here: http://www.cap2.co.uk/dev/timetable.htm
Essentially, I’d like to put the days across the top of the timetable div, and have them fixed there as the element scrolls.
I realise that I could just place the days before the div. However, because the layout is intended to be fluid, I’m potentially going to have issues with the headings lining up with the grid below due to the varying scrollbar width across the browsers (and user preference).
It’ll have to be outside of / before
div#timetable.Wrap
div#timetablein another<div>. Give the outer<div>theposition:relative;and the inner<div>(div#timetable) theoverflow:scroll;.Here’s a working example: (a little long winded)