Hi there! As you feared, I'm not entirely sure what you want to accomplish - other than that, I should be able to help you with HTML / CSS . My
current understanding is that you have a div in which you want all pages to load - the main page being loaded only at the start. Apart from just
loading into the div, a kind of 'flashyness' is desired. I hope this is correct, as I'm about to continue on that assumption.
As CSS / Cascading Style Sheet is no more than a stylesheet - something with which you define the layout in shapes and colors - you can't use it to
define dynamic actions, i.e. script. You can use it to make a link look pretty, but that's about it. CSS can be used to do what you want, but only in
corroboration with Javascript. Don't let that scare you off - Javascript can be very friendly. More on that later.
Back in the day, HTML used to control these kind of actions with frames and link targets. The consensus in the business is that frames are outdated
and should no longer be used. For demonstration purposes, you could consider using it anyway - but it won't lead to any flashyness and it might
require a substantive rewrite. The other possibility for HTML is to use iframes. Iframes are like divs, but they can automagically load other pages
with the "src" attribute. IIRC, you would still need Javascript to change the "src" attribute when a link is clicked.
It's possible I've overlooked an option, but it seems to me that you will have to turn to Javascript. Embrace it! If you wrote the HTML manually,
you certainly seem ready to me. Either way, Javascript has been around for a long time and there are many frameworks that can fulfill all the basic
dynamic needs. In preparing to explain what you'd need, I accidentally made an example page that does roughly what you want using
jQuery. All of the basic functionalities of jQuery are defined within one _javascript file, which
is included with a script tag in the head. Then it is ready for use - in this case, by some more script in the head.
(In this example, the jQuery code is loaded from the jQuery site each time you load the main page - if you want to use this on computers without an
internet connection or just want to improve the speed, simply download the jQuery file named in the script tag and edit the src attribute to include
it locally - i.e. remove everything but the file name).
Paste of example page
Just copy that into a file (test.html) in your directory and see if that's what you want. I've tried to provide useful comments in the script, but
am prepared to answer any question. A quick explanation: Basically, the main div in which pages are to be loaded is assigned an id attribute in HTML,
which makes it possible for Javascript to interact with it. When any link is clicked, a Javascript function checks to see whether a page attribute is
set, and if so loads the file named in the page attribute into the main div, using fancy-pants _javascript - fading the main div out, requesting the
page, filling the main div with the requested page, and fading the main div back in again.
P.S. To those that want to see the HTML of the OP in the garbled post above, just press the Quote button to get the unformatted post.