On 11 Feb, 20:54, "ben" wrote:
> i have a quick question about how i can make different content appear
> in the right column when the different links are clicked on the left
> menu column? for example, about us, location , contact details..
Put them on different pages, in separate .html files.
Instead of trying to stick all the content into one file, instead have
lots of files and share the stuff that needs to be shared (i.e. the
menus). Web searching will tell you how. The CSS is already easily
shareable by having an external stylesheet. The "framework" of the
pages is trivial and easily shared by cut-and-paste when you first
create them
> id like to keep all the content in one file, instead of using
> different htm pages for each thing
Of course you can do this, but not with CSS -- it's just the wrong
layer of technology to do it, it's about presentation not content.
This is basically a bad idea and you shouldn't do it. Starting with
the separate things separate and adding a little extra to share the
shared stuff works far better. The problem is that you're working hard
to re-invent frames without actually using frames, so you get most of
their disaadvantages too.
If you _must_ do it, then JavaScript and flipping the CSS display
property can do it quite well, provided that the user's browser is in
a mood to co-operate. You can even do it with pure CSS popups, but
these are very inflexible as to how much you can "pop". You could
also use an <iframe>, which is probably the best of these basically
wrong-headed approaches.
>> Stay informed about: menu links on a css page