I have searched for help, but all I seem to get is how to position DIVs within a table cell. I would like to position a table cell within a DIV.
On my website, I have a "timeline" listing events, locations, aircraft and so on. I have used a table to present this. The table is very wide (about 14,000 px) and is displayed in a DIV about 900 px wide. This means the viewer needs to scroll from side to side to view events at different times - this is how I wanted it.
The table is written with a mix of HTML and some basic PHP.
At first, every time the viewer changed page, the timeline view "reset", so it always displayed the earliest time/left most cell. I asked around for a fix that would put the text of a specific cell of the top most row of the table in the centre of the DIV - That is, if the viewer switched to the page about Vietnam, then in the timeline, the top row cell with the text "Vietnam" would be centred in the DIV. If the viewer switched to another page, say "1945 to 1950", then the centred cell would be "1945 to 1950".
Someone helped with some Javascript, using focus(). This works, sort of, but the required text is now to the right of the DIV.
I then thought, it would be better to put the text on the left of the DIV, so that the respective time period starts in view. Confused?
Here is one of my pages: http://www.satans-kittens.net/korea.php
As you can see, in the timeline table/DIV the word "Korea" is to the right of the DIV. I would like to have it on the left.
Any ideas?
thanks.